AIAgent
Creates a GraphAIAgent with the given graph strategy and configuration.
Return
A GraphAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Configuration for the agent, including the prompt, model, and other parameters.
Graph strategy defining the agent's workflow.
Registry of tools available to the agent. Defaults to an empty registry.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Type Parameters
The type of input the agent processes.
The type of output the agent produces.
Creates a GraphAIAgent with the default singleRunStrategy and the given configuration.
Return
A GraphAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Configuration for the agent, including the prompt, model, and other parameters.
Registry of tools available to the agent. Defaults to an empty registry.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Creates a FunctionalAIAgent with the given functional strategy and configuration.
Return
A FunctionalAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Configuration for the agent, including the prompt, model, and other parameters.
Functional strategy defining the agent's execution logic.
Registry of tools available to the agent. Defaults to an empty registry.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Type Parameters
The type of input the agent processes.
The type of output the agent produces.
Creates a PlannerAIAgent with the given planner strategy and configuration.
Return
A PlannerAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Configuration for the agent, including the prompt, model, and other parameters.
Planner strategy defining the agent's workflow.
Registry of tools available to the agent. Defaults to an empty registry.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Type Parameters
The type of input the agent processes.
The type of output the agent produces.
Creates a GraphAIAgent with the given graph strategy and model parameters.
Return
A GraphAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Language model to use.
Graph strategy defining the agent's workflow.
Registry of tools available to the agent. Defaults to an empty registry.
Optional system prompt for the agent.
Optional sampling temperature for the model, typically between 0.0 and 1.0.
Maximum number of agent iterations. Defaults to 50.
Optional processor for the model's responses.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Type Parameters
The type of input the agent processes.
The type of output the agent produces.
Creates a GraphAIAgent with the default singleRunStrategy and the given model parameters.
Return
A GraphAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Language model to use.
Registry of tools available to the agent. Defaults to an empty registry.
Optional system prompt for the agent.
Optional sampling temperature for the model, typically between 0.0 and 1.0.
Maximum number of agent iterations. Defaults to 50.
Optional processor for the model's responses.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Creates a FunctionalAIAgent with the given functional strategy and model parameters.
Return
A FunctionalAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Language model to use.
Functional strategy defining the agent's execution logic.
Registry of tools available to the agent. Defaults to an empty registry.
Optional system prompt for the agent.
Optional sampling temperature for the model, typically between 0.0 and 1.0.
Maximum number of agent iterations. Defaults to 50.
Optional processor for the model's responses.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Type Parameters
The type of input the agent processes.
The type of output the agent produces.
Creates a PlannerAIAgent with the given planner strategy and model parameters.
Return
A PlannerAIAgent instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Language model to use.
Planner strategy defining the agent's workflow.
Registry of tools available to the agent. Defaults to an empty registry.
Optional system prompt for the agent.
Optional sampling temperature for the model, typically between 0.0 and 1.0.
Maximum number of agent iterations. Defaults to 50.
Optional processor for the model's responses.
Unique identifier for the agent. A random UUID is used if null.
Clock for time-related operations. Defaults to KoogClock.System.
Lambda to install additional features into the agent's feature context.
Type Parameters
The type of input the agent processes.
The type of output the agent produces.