GraphAgentBuilder
A builder class for creating instances of AIAgent. This builder provides a fluent interface to configure various parameters and components required to construct an AI agent with a specific set of features, tools, and execution strategies.
Parameters
The input type that the agent processes.
The output type that the agent produces.
The execution strategy used by the agent for processing input and generating results.
The TypeToken representation of the input parameter type.
The TypeToken representation of the output parameter type.
PromptExecutor for the agent
id of the agent
AIAgentConfig containing initial agent configuration for the builder
optional Clock to be used in the agent for calculating timestamps
Constructors
Functions
Configures the GraphAgentBuilder using the provided AIAgentConfig instance.
Installs a specified feature into the current context and applies its configuration.
Sets the maximum number of iterations allowed for the agent's execution.
Sets the number of choices the agent can generate and returns the updated builder instance.
Sets the PromptExecutor instance to be used by this GraphAgentBuilder.
Sets the system-level prompt for the agent.
Sets the temperature parameter for the AI agent configuration.
Sets the toolRegistry for the GraphAgentBuilder and returns the updated builder instance.