onAgentFinished

fun onAgentFinished(handler: suspend (eventContext: AgentFinishedContext) -> Unit)(source)

Append handler called when an agent finishes execution.


var onAgentFinished: suspend (strategyName: String, result: Any?) -> Unit(source)

Deprecated

Please use onAgentFinished() instead

Replace with

onAgentFinished(handler)

A deprecated handler invoked when an agent finishes execution.

Provides the name of the strategy and an optional result of the execution.

It is recommended to use the onAgentFinished() function instead to append handlers.