DefinedAIAgentSubgraphBuilder
Builder class for creating a defined AI Agent subgraph with specific input and output types.
This class allows customization of subgraph configurations, such as the selection strategy for tools, language model parameters, and response processing. The subgraph's internal logic is defined using the buildSubgraph action passed to the constructor.
Parameters
The type of the input data for the subgraph.
The type of the output data for the subgraph.
The name of the subgraph.
Strategy to determine which tools are included in this subgraph. Defaults to using all tools.
The Large Language Model (LLM) to use for generating responses, or null if no model is provided.
Optional parameters for configuring the behavior of the LLM, such as temperature or context length.
A processor for handling and modifying the response after the subgraph's execution.
The class representing the input type for the subgraph.
The class representing the output type for the subgraph.
The action that defines the logic for constructing the subgraph.
Constructors
Initializes the builder with a name, tool selection strategy, LLM configuration, response processor, input/output types, and a subgraph build action.
Functions
Builds and returns an instance of AIAgentSubgraphBase configured with the specified input and output types.
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.