onStrategyCompleted

expect open suspend override fun onStrategyCompleted(eventId: String, executionInfo: AgentExecutionInfo, context: AIAgentContext, strategy: AIAgentStrategy<*, *, *>, result: Any?, resultType: TypeToken)(source)

Notifies all registered strategy handlers that a strategy has finished execution.

Parameters

eventId

The unique identifier for the event group;

executionInfo

The execution information for the strategy event;

context

The context of the strategy execution;

strategy

The strategy that has finished execution;

result

The result produced by the strategy execution;

resultType

The type token of the result produced by the strategy execution.