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 execution strategy used by the agent for processing input and generating results.
PromptExecutor for the agent
id of the agent
AIAgentConfig containing initial agent configuration for the builder
optional KoogClock to be used in the agent for calculating timestamps
Type Parameters
The input type that the agent processes.
The output type that the agent produces.
Constructors
Functions
Configures the current builder instance using the provided AIAgentConfig.
Installs a new feature into the GraphAgentBuilder.
Installs a specified feature into the current context and applies its configuration.
Sets the maximum number of iterations for the builder.
Sets the number of choices to be utilized by the builder instance.
Sets the PromptExecutor to be used by the builder instance.
Sets the response processor for the agent.
Sets the system prompt to be used by the builder.
Sets the temperature value for the builder.
Sets the given ToolRegistry instance to the builder configuration.