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
def bind(session_id: str, principal: Dict[str, Any]) -> NoneParameters
ParamField
strUnique session identifier
ParamField
Dict[str, Any]Principal information (user_id, roles, metadata, etc.)
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3153