handle

abstract suspend fun handle(eventContext: AgentBeforeCloseContext)(source)

Handles an event that occurs before an agent is closed, allowing for any necessary pre-termination or cleanup operations to be executed.

Parameters

eventContext

The context of the agent that is about to be closed, containing information such as the agent's identifier.