close

suspend override fun close()(source)

Closes the AI Agent and performs necessary cleanup operations.

This method is a suspending function that ensures that the AI Agent's resources are released when it is no longer needed. It notifies the pipeline of the agent's closure and ensures that any associated features or stream providers are properly closed.

Overrides the close method to implement agent-specific shutdown logic.