class MAGES::JARIA::Editor::JARIA¶
Overview¶
Singleton class for JARIA. More…
class JARIA { public: // properties JARIA Instance; UnityEngine.UIElements.Label Response; // events event ResponseUpdated(); // methods delegate void ResponseUpdatedDelegate(ResponseData newresponse); void ResetResponse(); async TaskGetModelURL(string filename); async Task<ResponseData> RequestToJariaAsync( string userInput, string openAIKey, string selection ); };
Detailed Documentation¶
Singleton class for JARIA.
Properties¶
JARIA Instance
Gets singleton instance of JARIA.
UnityEngine.UIElements.Label Response
Gets or sets the response label data.
Events¶
event ResponseUpdated()
Event for when the response is updated.
Methods¶
delegate void ResponseUpdatedDelegate(ResponseData newresponse)
Delegate for when the response is updated.
Parameters:
newresponse |
The updated data. |
void ResetResponse()
Resets the response data.
async TaskGetModelURL(string filename)
Gets the URL of the model.
Parameters:
filename |
The filename of the model requested from the user. |
Returns:
The download url of the model.
async Task<ResponseData> RequestToJariaAsync( string userInput, string openAIKey, string selection )
Sends API call to JARIA and returns the response.
Parameters:
userInput |
The user’s input text. |
openAIKey |
User’s openAI key. |
selection |
The selected model for inference. |
Returns:
The response data.