onAgentBeforeClosed

suspend fun onAgentBeforeClosed(agentId: String)(source)

Invoked before an agent is closed to perform necessary pre-closure operations.

Parameters

agentId

The unique identifier of the agent that will be closed.