createManagedAgent
abstract fun createManagedAgent(id: String? = null, clock: Clock = Clock.System): AIAgent<Input, Output>(source)
Creates and registers a managed AI agent with an optional identifier and clock instance.
Return
The newly created AI agent instance of type AIAgent.
Parameters
id
An optional identifier for the managed agent. If not provided, a unique identifier may be generated internally.
clock
A clock instance used for time-related operations within the agent. Defaults to the system clock.