observers • AI Agent SDK

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

observers

Method

</div>

This is a method of the SessionObserverProtocol class in the protocols module.

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

Signature

python
def observers(session_id: str) -> 'List[Tuple[str, SessionSharingRole]]'

Parameters

ParamField str

No description available.

Returns

ResponseField 'List[Tuple[str, SessionSharingRole]]'

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 345