createAgentAndRun
Creates an AI agent with the specified configuration and runs it using the provided input.
Return
The output generated by the agent after processing the input.
Parameters
The input data to be processed by the agent.
An optional unique identifier for the agent. If null, a default identifier will be generated.
The tool registry to be used by the agent. Defaults to the service's tool registry.
The configuration parameters for the AI agent. Defaults to the service's agent configuration.
The clock instance used for managing time-related operations. Defaults to the system clock.
Creates an AI agent using the specified parameters and immediately runs it with the provided input.
Return
The output produced by running the agent with the provided input.
Parameters
The input data to be processed by the agent.
An optional identifier for the agent. If null, a default identifier may be used.
A registry of additional tools available to the agent. Defaults to an empty registry.
Configuration settings for the agent. Defaults to the current agent configuration of the service.
An optional executor service to be used for running the agent. If null, a default executor may be used.
The clock instance to be used for time-based operations within the agent.
Creates an AI agent with the specified configuration and runs it using the provided input.
Return
The output generated by the agent after processing the input.
Parameters
The input data to be processed by the agent.
An optional unique identifier for the agent. If null, a default identifier will be generated.
The tool registry to be used by the agent. Defaults to the service's tool registry.
The configuration parameters for the AI agent. Defaults to the service's agent configuration.
The clock instance used for managing time-related operations. Defaults to the system clock.