Track Presence • AI Agent SDK

track_presence: Set or update a client's presence status.

track_presence

Async

Method

</div>

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

Set or update a client’s presence status.

Signature

python
async def track_presence(client_id: str, status: str, metadata: Optional[Dict[str, Any]]) -> None

Parameters

ParamField str

Client identifier

ParamField str

Presence status (“online”, “idle”, “offline”)

ParamField Optional

Optional client metadata

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1919