onAgentCompleted
suspend 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
context
The context of the agent execution, providing access to the agent environment and context features