AgentBeforeCloseHandler

Functional interface for handling logic that needs to be executed before an agent is closed.

This handler provides an opportunity to perform cleanup operations or any necessary pre-termination processes based on the context provided through AgentBeforeCloseHandlerContext.

See also

Functions

Link copied to clipboard
abstract suspend fun handle(eventContext: AgentBeforeCloseContext)

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