Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt

Use this file to discover all available pages before exploring further.

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).
from flowxobservatory import track_event

track_event(
    "chat",
    role="user",
    content="What's my policy number?",
    thread_id="cust-42",
)
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

FieldMeaning
ThreadA short preview of the most recent message.
AgentThe agent handling the conversation.
UserThe user the conversation belongs to.
MessagesTotal number of messages so far.
TokensSum of all message tokens.
CostSum of cost across all messages.
Last activityWhen the most recent message landed.

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

FilterWhat it does
AgentScope to one agent.
UserScope to one user.
With feedbackShow only threads that have at least one feedback record.
Time rangeStandard time selector.

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 2, 2026