AIAgentStrategyBuilder
A builder class responsible for constructing an instance of AIAgentStrategy
. The AIAgentStrategyBuilder
serves as a specific configuration for creating AI agent strategies with a defined start and finish node, along with a designated tool selection strategy.
Parameters
The name of the strategy being built, serving as a unique identifier.
The strategy used to determine the subset of tools available during subgraph execution.
Constructors
Properties
Functions
Builds and returns the instance of type T
that has been configured using the builder.
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.