lookup • AI Agent SDK

lookup: Look up the principal bound to a session.

lookup

Method

</div>

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

Look up the principal bound to a session.

Signature

python
def lookup(session_id: str) -> Optional[Dict[str, Any]]

Parameters

ParamField str

Session identifier to look up

Returns

ResponseField Optional[Dict[str, Any]]

Principal information if found, None otherwise

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3162