Skip to main content
Threads group runs that share a conversational context, so you can review a multi-turn dialogue end-to-end instead of jumping between isolated runs.

How threads are built

A thread is constructed from events with name chat. The SDK groups consecutive chat events that share the same thread_id (or, when none is supplied, the same agent and user within a time window).
Each emitted chat event becomes one ThreadMessage. The aggregate Thread record carries:
  • started_at, ended_at, message_count
  • Total tokens and total cost across the thread
  • Last message preview for the thread list

What you see per thread


Drilling into a thread

Click any thread row to open the full conversation. Each message exposes:
  • The full content
  • Per-message latency
  • The associated run, with a link out to the trace
  • Any user feedback attached via the feedback API
User feedback collected through the User Feedback flow is rendered inline next to the corresponding assistant message.

Filtering


Common workflows

Filter by Agent and User. Threads list returns the matching conversations chronologically.
Toggle With feedback and sort by Last activity descending. Open each thread and inspect the feedback annotation per message.
Open the thread, click the Run link next to the message you care about — that opens the trace detail for the underlying run.

Traces

Underlying chain-of-calls per message.

Event reporting

How chat events are emitted.
Last modified on June 1, 2026