onAgentCompleted
expect open suspend override fun onAgentCompleted(eventId: String, executionInfo: AgentExecutionInfo, agentId: String, runId: String, result: Any?, context: AIAgentContext)(source)
Notifies all registered handlers that an agent has finished execution.
Parameters
eventId
The unique identifier for the event group.
executionInfo
The execution information for the agent environment transformation event
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