close • AI Agent SDK
close: Synchronously close the agent and clean up resources.
close
Method
</div>
Synchronously close the agent and clean up resources.
Signature
def close() -> NoneUses
memory.close_connectionslogger.warningasyncio.iscoroutinefunctionrun_coroutine_from_any_contextacloseclosellm_client.closet.shutdowntask.cancellock.sync
Used By
Source
View on GitHubpraisonaiagents/agent/agent.py at line 8101