> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# lookup • AI Agent SDK

> lookup: Look up the principal bound to a session.

# lookup

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SessionBindingProtocol**](../classes/SessionBindingProtocol) class in the [**protocols**](../modules/protocols) module.

Look up the principal bound to a session.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def lookup(session_id: str) -> Optional[Dict[str, Any]]
```

## Parameters

<ParamField query="session_id" type="str" required={true}>
  Session identifier to look up
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[Dict[str, Any]]">
  Principal information if found, None otherwise
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L2257">
  `praisonaiagents/gateway/protocols.py` at line 2257
</Card>
