onAgentCompleted
expect open suspend override fun onAgentCompleted(eventId: String, executionInfo: AgentExecutionInfo, agent: AIAgent<*, *>, context: AIAgentContext, runId: String, result: Any?)(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;
agent
The agent instance that finished execution;
context
The context of the strategy execution;
runId
The unique identifier of the agent run;
result
The result produced by the agent, or null if no result was produced.