onAgentClosing
suspend fun onAgentClosing(eventId: String, executionInfo: AgentExecutionInfo, agentId: String)(source)
Invoked before an agent is closed to perform necessary pre-closure operations.
Parameters
eventId
The unique identifier for the event group;
executionInfo
The execution information for the agent environment transformation event;
agentId
The unique identifier of the agent that will be closed;
context
The context of the agent execution, providing access to the agent environment and context features;