Class OpenAISession
java.lang.Object
com.mulesoft.modules.agent.broker.internal.extension.connection.openai.OpenAISession
- All Implemented Interfaces:
LLMClient.LLMSession
-
Constructor Summary
ConstructorsConstructorDescriptionOpenAISession(com.openai.client.OpenAIClient client, LLMRequest llmRequest, OpenAISettings settings, List<com.openai.models.responses.Tool> tools) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIteration(Iteration iteration) voidaddToolResponse(ToolResponse toolResponse) CompletableFuture<org.mule.runtime.api.functional.Either<LLMOutput,ToolSelection>> getNext()
-
Constructor Details
-
OpenAISession
public OpenAISession(com.openai.client.OpenAIClient client, LLMRequest llmRequest, OpenAISettings settings, List<com.openai.models.responses.Tool> tools)
-
-
Method Details
-
addIteration
- Specified by:
addIterationin interfaceLLMClient.LLMSession
-
addToolResponse
- Specified by:
addToolResponsein interfaceLLMClient.LLMSession
-
getNext
- Specified by:
getNextin interfaceLLMClient.LLMSession
-
getInitialRequest
- Specified by:
getInitialRequestin interfaceLLMClient.LLMSession
-