void SendPrompt(const AZStd::vector<AZStd::any>& prompt) - sending the request to the AI endpoint
AIHistory GetHistory() - gets the current history of the conversation
void OnPromptResponse(ModelAPIExtractedResponse response) - notification when a response is ready
The component that want to communicate with an AI endpoint should use the AZ::Outcome<AZ::u64, void> CreateModelAgent( const AZStd::string& serviceProviderName, const AZStd::string modelModelConfigurationName) function using the GenAIFrameworkBus to create a new agent and get its id.
After it should connect to the ModelAgent notification bus, then to send a prompt it should use the SendPromt Bus call with the same id to send the prompt.
I've added EBusses for the model agent.
void SendPrompt(const AZStd::vector<AZStd::any>& prompt)
- sending the request to the AI endpointAIHistory GetHistory()
- gets the current history of the conversationvoid OnPromptResponse(ModelAPIExtractedResponse response)
- notification when a response is readyThe component that want to communicate with an AI endpoint should use the
AZ::Outcome<AZ::u64, void> CreateModelAgent( const AZStd::string& serviceProviderName, const AZStd::string modelModelConfigurationName)
function using the GenAIFrameworkBus to create a new agent and get its id. After it should connect to the ModelAgent notification bus, then to send a prompt it should use theSendPromt
Bus call with the same id to send the prompt.