PlannerAgentBuilder
Builds an AI-based planning agent by configuring various parameters and defining custom behaviors for the agent. This builder allows flexible setup of an agent's functionality and behavior based on the provided configuration and tools.
Parameters
The type representing the state handled by the AI agent.
The planning strategy used by the agent to process and execute tasks.
The executor responsible for handling AI prompts.
The registry of tools available for use by the agent. Defaults to an empty tool registry.
The optional identifier of the agent.
AIAgentConfig containing initial agent configuration for the builder
The clock instance used to track time-related operations for the agent. Defaults to the system clock.
A list of feature installers that enhance the agent's behavior with additional functionality.
Constructors
Functions
Configures the agent with the specified AI agent configuration.
Installs a functional feature into the PlannerAgentBuilder with the specified configuration.
Sets the maximum number of iterations for the planner agent.
Sets the number of choices the planner agent can consider while making decisions.
Sets the PromptExecutor instance to be used by the PlannerAgentBuilder.
Configures the system prompt for the planner agent.
Sets the temperature parameter for the planner agent. Temperature controls the randomness of the agent's outputs. A higher value encourages more random and diverse outputs, while a lower value makes the outputs more focused and deterministic.
Sets the tool registry for the PlannerAgentBuilder.