createAgent

suspend override fun createAgent(id: String?, clock: Clock): AIAgent<Input, Output>(source)

Creates and registers a new AI agent using the provided agent ID and clock.

Return

AIAgent instance with the specified configurations.

Parameters

id

Optional identifier for the AI agent. If null, a default ID will be generated.

clock

A clock instance to manage time-related operations for the agent.