createAgent
Creates a new AI agent with the specified configuration, tool registry, and optional parameters.
Return
The newly created AI agent.
Parameters
An optional unique identifier for the agent. If null, a default identifier will be generated.
The registry of tools to be used by the agent. Defaults to an empty registry.
The configuration settings for the AI agent. Defaults to the service's agent configuration.
The clock instance to manage time-related operations, defaulting to the system clock.
Creates a new agent with the specified configuration and settings.
Return
The created agent instance.
Parameters
An optional unique identifier for the agent. If null, a default identifier may be generated.
The additional tool registry to be associated with the agent. Defaults to an empty registry.
The configuration to use for the agent. Defaults to the service's agent configuration.
The executor service to use for asynchronous operations. If null, a default executor may be used.
The clock instance to be used for time-based functionalities. Defaults to the system clock.
Creates a new AI agent with the specified configuration, tool registry, and optional parameters.
Return
The newly created AI agent.
Parameters
An optional unique identifier for the agent. If null, a default identifier will be generated.
The registry of tools to be used by the agent. Defaults to an empty registry.
The configuration settings for the AI agent. Defaults to the service's agent configuration.
The clock instance to manage time-related operations, defaulting to the system clock.