agentFinishedHandler

Defines a handler invoked when an agent execution is completed. This handler processes the outcome of the agent's operation, allowing for custom behavior upon completion.

The AgentFinishedHandler functional interface is used for this purpose, providing a suspendable function that takes the strategy name and an optional result of the execution.