Session Sharing Role • AI Agent SDK
SessionSharingRole: The role an attached client holds within a shared Gateway session.
SessionSharingRole
Defined in the protocols 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 GitHubpraisonaiagents/gateway/protocols.py at line 296