> ## 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 Sharing Role • AI Agent SDK

> SessionSharingRole: The role an attached client holds within a shared Gateway session.

# SessionSharingRole

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

The role an attached client holds within a shared Gateway session.

Roles describe *what an attached client may do* within the session and
layer on top of :class:`OperatorScope`. Fan-out remains scope-aware: an
observer without `READ` receives nothing regardless of role.

Values:
OWNER:  Controls sharing/visibility; the session's original driver.
MEMBER: May co-drive (send) when the session is `SHARED`.
VIEWER: Observes the live turn stream but cannot send.

## Source

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

***

## Related Documentation

> **[Session Management](https://praison.ai/docs/docs/concepts/session-management)**

> **[Sessions Feature](https://praison.ai/docs/docs/features/sessions)**

> **[Session Persistence](https://praison.ai/docs/docs/features/session-persistence)**


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