bind • AI Agent SDK

bind: Bind a session to an authenticated principal.

bind

Method

</div>

This is a method of the SessionBindingProtocol class in the protocols module.

Bind a session to an authenticated principal.

Signature

python
def bind(session_id: str, principal: Dict[str, Any]) -> None

Parameters

ParamField str

Unique session identifier

ParamField Dict[str, Any]

Principal information (user_id, roles, metadata, etc.)

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3153