Close Session • AI Agent SDK
close_session: Close a session.
close_session
Method
</div>
This is a method of the GatewayProtocol class in the protocols module.
Close a session.
Signature
def close_session(session_id: str) -> boolParameters
ParamField
strThe session ID to close
Returns
ResponseField
boolTrue if session was closed, False if not found
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 1431