AIAgentSubgraphBuilder
Builder class for creating AI agent subgraphs with a defined tool selection strategy.
This class facilitates the construction of customized subgraphs in an AI agent's execution pipeline. It provides methods for defining start and finish nodes and ensuring the connectivity between them. The subgraph can be configured with a tool selection strategy to control the tools available during its execution.
Parameters
Initial LLM model used in this subgraph
Initial LLM prompt parameters used in this subgraph
Initial optional processor defining the post-processing of messages returned from the LLM.
Type Parameters
The input type expected by the starting node of the subgraph.
The output type produced by the finishing node of the subgraph.
Constructors
Constructs an instance of AIAgentSubgraphBuilder with the provided parameters, using KTypes for input and output type representation.
Properties
Functions
Builds and returns the instance of type T that has been configured using the builder.
Creates an edge between nodes.
Configures a subgraph within the AI agent framework, associating it with required tasks and operations.
Configures and sets up a subgraph with task handling, including tool execution operations, assistant response management, and task finalization logic.
Connects the sequence of nodes with edges between them.