TracingGuides

Conversations

Group the runs of one chat or thread with a conversationId: one run per turn, read and scored as a whole.

A multi-turn chat is one run per turn, grouped by a conversation ID. Each turn keeps its own trace, and the conversation reads them in order.

Set it on each turn

Pass the same conversationId on every turn of the thread. Use an ID you already have, such as the chat thread or ticket ID; Trodo never guesses one.

await trodo.wrapAgent('support-agent', async (run) => {
  run.setInput(message);
  const reply = await agent.reply(history, message);
  run.setOutput(reply);
  return reply;
}, { distinctId: user.id, conversationId: thread.id });
with trodo.wrap_agent("support-agent", distinct_id=user.id, conversation_id=thread.id) as run:
    run.set_input(message)
    reply = agent.reply(history, message)
    run.set_output(reply)

Set each turn's input to the user's new message, not the whole history, so the conversation reads as the exchange it was.

Don't keep one run open for the whole chat. A run that lasts the session has no clear end, and each turn's evals, cost and latency get mixed together.

Where you see it

Traces → Conversations lists one row per conversation. Opening any run of a conversation shows the whole thread in its Conversations tab, turn by turn, next to that run's trace.

A run's Conversations tab: the thread's turns in order, each with its user message and the agent's reply.

Conversation evals

An eval at the conversation level scores the whole thread, for example "did the user get their refund by the end?". It runs once the conversation has been quiet for 15 seconds, and again each time the thread grows. See How an eval works.

On this page