close • AI Agent SDK
close: Close all agent resources and cleanup connections.
close
Method
</div>
This is a method of the AgentTeam class in the agents module.
Close all agent resources and cleanup connections.
This method ensures proper cleanup of:
- Agent resources (connections, file handles)
- Shared memory connections (SQLite, ChromaDB, MongoDB)
- Context manager resources
Signature
def close() -> NoneUses
get_loggercallableagent.closelogger.debuglogger.warningclose
Used By
Source
View on GitHubpraisonaiagents/agents/agents.py at line 4430