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

python
def close_session(session_id: str) -> bool

Parameters

ParamField str

The session ID to close

Returns

ResponseField bool

True if session was closed, False if not found

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1431


Related Documentation