createAgent
abstract suspend fun createAgent(id: String? = null, clock: Clock = Clock.System): AIAgent<Input, Output>(source)
Creates a new instance of an AI agent with the specified parameters.
Return
A new instance of an AI agent configured with the provided parameters.
Parameters
id
An optional unique identifier for the agent. If null, a default identifier will be generated.
clock
The clock instance used to manage time-related operations. Defaults to the system clock.