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

# observers • AI Agent SDK

> observers: Return ``(client_id, role)`` pairs currently attached to the session.

# observers

Method

> This is a method of the [**SessionObserverProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/SessionObserverProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Return `(client_id, role)` pairs currently attached to the session.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def observers(session_id: str) -> 'List[Tuple[str, SessionSharingRole]]'
```

## Parameters

**session\_id** `str` *required*

No description available.

### Returns

**Returns** `'List[Tuple[str, SessionSharingRole]]'`

The result of the operation.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L343)**
>
> `praisonaiagents/gateway/protocols.py` at line 343


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.