Class FunctionBasedSession
java.lang.Object
com.mulesoft.modules.agent.broker.internal.extension.connection.session.BaseLLMSession
com.mulesoft.modules.agent.broker.internal.extension.connection.session.FunctionBasedSession
- All Implemented Interfaces:
LLMClient.LLMSession
-
Field Summary
Fields inherited from class com.mulesoft.modules.agent.broker.internal.extension.connection.session.BaseLLMSession
builder, client, inputs, internalReasoning -
Constructor Summary
ConstructorsConstructorDescriptionFunctionBasedSession(com.openai.client.OpenAIClient client, LLMRequest llmRequest, OpenAISettings settings, List<com.openai.models.responses.Tool> tools) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<org.mule.runtime.api.functional.Either<LLMOutput,ToolSelection>> protected com.openai.models.responses.ResponseCreateParams.Builderprotected org.mule.runtime.api.functional.Either<LLMOutput,ToolSelection> onFunctionCall(com.openai.models.responses.ResponseFunctionToolCall toolCall) Methods inherited from class com.mulesoft.modules.agent.broker.internal.extension.connection.session.BaseLLMSession
addIteration, addToolResponse, getInitialRequest, getNext, onCustomCall, onReasoningItem
-
Constructor Details
-
FunctionBasedSession
public FunctionBasedSession(com.openai.client.OpenAIClient client, LLMRequest llmRequest, OpenAISettings settings, List<com.openai.models.responses.Tool> tools)
-
-
Method Details
-
doGetNext
protected CompletableFuture<org.mule.runtime.api.functional.Either<LLMOutput,ToolSelection>> doGetNext()- Specified by:
doGetNextin classBaseLLMSession
-
onFunctionCall
protected org.mule.runtime.api.functional.Either<LLMOutput,ToolSelection> onFunctionCall(com.openai.models.responses.ResponseFunctionToolCall toolCall) - Overrides:
onFunctionCallin classBaseLLMSession
-
newRequestBuilder
protected com.openai.models.responses.ResponseCreateParams.Builder newRequestBuilder()- Overrides:
newRequestBuilderin classBaseLLMSession
-