onAgentBeforeClosed
Invoked before an agent is closed to perform necessary pre-closure operations.
Parameters
agentId
The unique identifier of the agent that will be closed.
Invoked before an agent is closed to perform necessary pre-closure operations.
The unique identifier of the agent that will be closed.