onAgentFinished

suspend fun onAgentFinished(agentId: String, runId: String, result: Any?, resultType: KType)(source)

Notifies all registered handlers that an agent has finished execution.

Parameters

agentId

The unique identifier of the agent that finished execution

runId

The unique identifier of the agent run

result

The result produced by the agent, or null if no result was produced