class MAGES::JARIA::Editor::JARIA¶
Overview¶
Singleton class for JARIA. More…
class JARIA { public: // properties JARIA Instance; UnityEngine.UIElements.Label Response; UnityEvent OnResponseFinished; // 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 ); async Task<ResponseData> RequestToJariaStoryboardAsync( string userInput, string openAIKey, string selection, Dictionary
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.
UnityEvent OnResponseFinished
Gets or sets the event invoked immediately after the response is finished.
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.
async Task<ResponseData> RequestToJariaStoryboardAsync( string userInput, string openAIKey, string selection, Dictionary
Sends API call to the new JARIA and returns the response.
Parameters:
userInput |
The user’s input text. |
openAIKey |
User’s openAI key. |
selection |
The selected model for inference. |
parameters |
The additional parameters. |
Returns:
The response data.
async TaskDeleteStoryboardHistrory()
API call to delete the storyboard history.
Returns:
The Status code.
async TaskValidateOpenAIKey( string openAIKey, string model, string selection )
Sends a request to validate the OpenAIKey of the user.
Parameters:
openAIKey |
The given OpenAIKey. |
model |
The type of gpt license the key corresponds to. |
selection |
A string containing information regarding whether the OpenAIKey is the default or a custom one. |
Returns:
The status code of the response.