Class ProtifyAIConversation
- java.lang.Object
-
- ai.protify.core.internal.conversation.ProtifyAIConversation
-
- All Implemented Interfaces:
AIConversation
public class ProtifyAIConversation extends java.lang.Object implements AIConversation
-
-
Constructor Summary
Constructors Constructor Description ProtifyAIConversation(AIClient client, java.lang.String conversationId, java.util.List<AIMessage> messages, AIConversationStore store, java.util.Map<AIConfigProperty,java.lang.Object> properties, java.util.List<AITool> tools, java.util.Map<java.lang.String,AIToolHandler> toolHandlers, int maxToolRounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.lang.StringgetId()java.util.List<AIMessage>getMessages()AIConversationStategetState()AIResponsesend(AIInput... inputs)AIResponsesend(java.lang.String text)AIResponsesend(java.lang.String text, AIInput... additionalInputs)
-
-
-
Constructor Detail
-
ProtifyAIConversation
public ProtifyAIConversation(AIClient client, java.lang.String conversationId, java.util.List<AIMessage> messages, AIConversationStore store, java.util.Map<AIConfigProperty,java.lang.Object> properties, java.util.List<AITool> tools, java.util.Map<java.lang.String,AIToolHandler> toolHandlers, int maxToolRounds)
-
-
Method Detail
-
send
public AIResponse send(java.lang.String text)
- Specified by:
sendin interfaceAIConversation
-
send
public AIResponse send(java.lang.String text, AIInput... additionalInputs)
- Specified by:
sendin interfaceAIConversation
-
send
public AIResponse send(AIInput... inputs)
- Specified by:
sendin interfaceAIConversation
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceAIConversation
-
getMessages
public java.util.List<AIMessage> getMessages()
- Specified by:
getMessagesin interfaceAIConversation
-
getState
public AIConversationState getState()
- Specified by:
getStatein interfaceAIConversation
-
clear
public void clear()
- Specified by:
clearin interfaceAIConversation
-
-