AIAgentSubgraphBuilderBase
Abstract base class for building AI agent subgraphs.
This class provides utilities for defining and connecting nodes within a subgraph, constructing custom subgraphs with specified tools or tool selection strategies, and managing the structural relationships between subgraph nodes.
Parameters
The input type expected by the starting node of the subgraph.
The output type produced by the finishing node of the subgraph.
Inheritors
Properties
Functions
Creates an edge between nodes.
Defines a new node in the agent's stage, representing a unit of execution that takes an input and produces an output.
A pass-through node that does nothing and returns input as output
A node that executes multiple tool calls. These calls can optionally be executed in parallel.
Creates a node in the AI agent subgraph that processes a collection of tool calls, executes them, and sends back the results to the downstream process. The tools can be executed either in parallel or sequentially based on the provided configuration.
A node that calls a specific tool directly using the provided arguments.
A node that executes a tool call and returns its result.
A node that compresses the current LLM prompt (message history) into a summary, replacing messages with a TLDR.
A node that moderates only a single input message using a specified language model.
A node that appends a user message to the LLM prompt and gets a response with optional tool usage.
A node that appends a user message to the LLM prompt and gets multiple LLM responses with tool calls enabled.
A node that appends a user message to the LLM prompt and streams LLM response without transformation.
A node that appends a user message to the LLM prompt, streams LLM response and transforms the stream data.
A node that appends a user message to the LLM prompt and requests structured data from the LLM with error correction capabilities.
A node that that appends a user message to the LLM prompt and forces the LLM to use a specific tool.
A node that appends a user message to the LLM prompt and forces the LLM to use a specific tool.
A node that appends a user message to the LLM prompt and gets a response where the LLM can only call tools.
A node that adds multiple tool results to the prompt and gets multiple LLM responses.
A node that sends multiple tool execution results to the LLM and gets multiple LLM choices.
A node that adds a tool result to the prompt and requests an LLM response.
A node that chooses an LLM choice based on the given strategy.
A node that adds messages to the LLM prompt using the provided prompt builder. The input is passed as it is to the output.
Creates a node that executes multiple nodes in parallel.
Creates a subgraph with a specified tool selection strategy.
Creates a subgraph with specified tools.
Connects the sequence of nodes with edges between them.