> ## 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.

# Session ID • AI Agent SDK

> session_id: Unique session identifier.

# session\_id

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

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

Unique session identifier.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def session_id() -> str
```

### Returns

<ResponseField name="Returns" type="str">
  The result of the operation.
</ResponseField>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Session Management" icon="clock" href="/docs/concepts/session-management" />

  <Card title="Sessions Feature" icon="folder" href="/docs/features/sessions" />

  <Card title="Session Persistence" icon="database" href="/docs/features/session-persistence" />
</CardGroup>
