SubgraphWithTaskBuilder
A builder class for creating an AI agent subgraph that incorporates task definition as part of its configuration. This builder allows customizing the construction of a subgraph while defining how tasks are specified and executed within the subgraph.
The class is designed for Java interoperability and simplifies the process of building subgraphs with task-specific logic, including specifying input/output types, tool selection
Constructors
Functions
Sets the maximum number of times the assistant's response can be repeated.
Builds and returns an instance of AIAgentSubgraph configured with the specified parameters.
Configures the builder with a selection of tools defined by the provided tool sets. The tools will be extracted from each ToolSet and applied to the builder's tool selection strategy.
Configures the builder to use a specific list of tools for the AI agent's subgraph.
Configures the builder with the specified input type and returns a new instance of AIAgentSubgraphBuilderWithInput, allowing further configuration for the specified input type.
Sets the parameters for the Language Learning Model (LLM) in the current builder.
Sets the specified response processor to handle and modify LLM responses.
Sets the tool selection strategy for the subgraph builder and returns the updated builder instance.