Conversations
Useclient.conversations to list conversation metadata and create or resume interactive AsyncConversation objects.
Listing conversations
page.total is the full count matching the list filters, not just the number returned on the current page.
Use agent_id, source_ref_id, source, and exclude_source to narrow list results. Tenant-wide all_users=True requires source_ref_id.
Searching conversations
Creating and sending
Streaming
Watching for reconnects
id: fields for snapshots; pass the last one as last_event_id on reconnect.
Retrieving a conversation
Title management
Deleting conversations
Message dataclass
| Field | Type | Description | |
|---|---|---|---|
id | str | Message ID | |
role | str | "user" or "assistant" for flat conversation messages | |
content | str | Message text content | |
timestamp | `datetime | None` | When the message was created |

