IAIWebClient
public interface IAIWebClient
AI Web client interface. This interface enables to substitute different AI language models. Classes that implement this interface are supposed to be used along with SlidesAIAgent.
Methods
Method | Description |
---|---|
callChat(String instruction) | Sends a chat instruction to the AI model using a provided HttpConnection instance and return response message to the given instruction. |
createConversation() | Creates a conversation instance. |
callChat(String instruction)
public abstract String callChat(String instruction)
Sends a chat instruction to the AI model using a provided HttpConnection instance and return response message to the given instruction.
Parameters:
Parameter | Type | Description |
---|---|---|
instruction | java.lang.String | The instruction or message to be processed by the AI model. |
Returns: java.lang.String - The message generated by the AI model in response to the given instruction.
createConversation()
public abstract IAIConversation createConversation()
Creates a conversation instance. Unlike regular AI calls, conversations retain the entire context.
Returns: IAIConversation - An IAIConversation instance.