createAgentBlocking

fun createAgentBlocking(id: String? = null, additionalToolRegistry: ERROR CLASS: Symbol not found for ToolRegistry = ToolRegistry.EMPTY, agentConfig: AIAgentConfig = this.agentConfig, clock: ERROR CLASS: Symbol not found for KoogClock = KoogClock.System): TAgent(source)

Creates a new agent with the specified configuration and settings.

Return

The created agent instance.

Parameters

id

An optional unique identifier for the agent. If null, a default identifier may be generated.

additionalToolRegistry

The additional tool registry to be associated with the agent. Defaults to an empty registry.

agentConfig

The configuration to use for the agent. Defaults to the service's agent configuration.

clock

The clock instance to be used for time-based functionalities. Defaults to the system clock.