Skip to main content
Open a session in Logs, read the chat, and open any reply to see the steps your AI agent took behind it. The Messages tab shows what each step cost and how long it took.

What the Messages tab shows

A conversation with an AI agent looks simple from the outside. The user asks something and the agent answers. Behind each answer the agent may have asked a model what to do, looked something up, charged a card, or retried a call that failed. The Messages tab puts both views side by side. On the right you read the chat. On the left you see an outline of the work behind each reply. Use it when you want to know:
  • What did the user ask, and what did the agent say back?
  • How long did a reply take, and what did it cost?
  • What did the agent do before it answered?
  • What was a model or a tool given, and what did it return?

Three words to know

The booking turn used through this page, with its steps in the order they ran:

What the icons mean

Every row in the outline has a small icon that tells you what kind of item it is. The colors match the other BotGauge views.

Open the Messages tab

1

Go to Logs

In the left menu, under Observability, choose Logs. (1 in the screenshot)
2

Pick a tab

Sessions shows whole conversations, Traces shows single turns, and Spans shows single steps. (2)
3

Click any row

A panel opens on the right, and Messages is the tab it opens on. (3)
The Logs page with numbered callouts on the Logs menu item, the Sessions, Traces, and Spans tabs, and a session row

The Logs page. Select a row to open it.

If the list is empty. Logs only lists activity from the time range in the button at the top right, which starts at Last 24 hours. Open the button and choose a longer range, such as Last 30 days, to see older conversations.

The two halves of the tab

The Messages tab is split in two. The left half is an outline of the conversation. The right half shows whatever you have selected in the outline.
Messages Two Halves

The Messages tab with the whole session selected.

  1. Messages tab. Messages, Graph view, and Timeline are three ways to look at the same conversation. They sit side by side at the top of the panel.
  2. The outline. The conversation as a list. The session is the first row, each turn is under it, and each turn can be opened to show its steps. Click the small arrow beside a turn to open or close it. The first turn starts open and the others start closed.
  3. The reading area. It shows what is selected on the left. With the session selected, it shows the whole conversation as a chat.
  4. Session arrows. They move to the next or previous row of the list you opened the panel from, such as “Session: 1 of 4”.

Read the conversation

When the session row is selected, the right half is the Transcript. It is the whole conversation as a chat, with the user on one side and the agent on the other.
Messages Transcript

The Transcript for the booking session.

  1. Session name. The name of the whole conversation.
  2. Capture label. How much of the conversation BotGauge recorded. Complete means all of it. See Is everything there? for the other labels.
  3. Latency and cost. How long the conversation took and what it cost in total.
  4. Transcript tab. The chat view. The Evaluations tab next to it, and the colored result labels beside that, show results from evals and are not covered on this page.
  5. The user’s message. User messages sit on the right with a white background.
  6. The agent’s reply. Agent replies sit on the left with a tinted background.
Click any message to open its turn. The turn is highlighted in the outline, and the right half switches from the chat to that turn’s details. Click the session row at the top of the outline to come back to the chat. A very long message shows its first part with a Show more link under it. If the conversation includes other kinds of messages, such as system instructions, they appear on the left with their role written above them.

Follow the work behind a reply

Each turn in the outline is one reply. Click the arrow beside a turn to open it. Underneath you see the steps the agent took, from top to bottom in the order they ran.
The outline with the first turn open and numbered callouts on the session, a turn, a model call, a tool call, the token numbers, and the arrow

The outline with a turn open.

  1. Session. The whole conversation, with its total time and total cost on the second line.
  2. Turn. One user message and the agent’s reply. The selected turn is highlighted.
  3. Model call. Teal. The name includes the model that was called.
  4. Tool call. Orange. It shows only how long the tool took.
  5. The numbers on a model call. They show how much text went in and out, and what the call cost. The next section explains how to read them.
  6. Arrow. Opens or closes a turn. A turn that is closed still shows its totals.

How to read the numbers

Models read and write text in small pieces called tokens. A token is roughly three quarters of an average English word. The text a model reads is counted as input tokens, and the text it writes back is counted as output tokens. A model call is priced by the tokens it reads and writes, so the numbers on the second line of a model call show how big the call was. For example, 231 → 74 (Σ 305) $0.002404 reads as follows. A turn shows the totals for all of its model calls. In the booking turn, the two model calls have 231 and 574 input tokens, and the turn shows 805. Its output tokens add up the same way: 74 + 59 = 133. A tool shows only its time, because it is not a model call.

Look inside a step

Click any row in the outline. The right half shows what that item received and what it returned. The three kinds of rows you will click most are shown below.

A turn

For a turn, the input is the user’s message and the output is the agent’s reply.
Messages Turn Details

A turn selected in the outline.

  1. Selected row. Highlighted in the outline.
  2. Time and cost. How long this turn took and what it cost. The cost covers all of the turn’s steps.
  3. Input. What came in. For a turn, the user’s message.
  4. Output. What went out. For a turn, the agent’s reply.
  5. Formatted or Raw. Formatted lays the content out for reading. Raw shows it as it was stored.
  6. Attributes. The item’s ID, name, type, created and updated times, project, trace and parent IDs, status code, and tags.

A model call

A teal row is a call to a language model. Its details show the conversation the model was handed and what the model answered.
A selected model call with numbered callouts on the selected row, time and cost, the system instructions, the conversation so far, and the output

A model call selected in the outline.

  1. Selected row. The model call you clicked.
  2. Time and cost. How long this one call took and what it cost.
  3. System. The standing instructions the agent gives the model.
  4. The conversation so far. The user and assistant messages the model saw.
  5. Output. What the model replied. Here it asked to run search_flights twice. The two orange tool search_flights rows below it are the calls that carried that out.

A tool call

An orange row is a tool the agent used. Tools and lookups call their two boxes Query and Response. Every other kind of row uses Input and Output.
Messages Tool Call

A tool call selected in the outline.

  1. Selected row. The tool call you clicked.
  2. A dash. No cost is recorded for this step.
  3. Query. What the tool was asked. Here, a search for flights from London to Lisbon next Friday.
  4. Response. What the tool sent back. Here, the two flights it found.
If a value is very large, BotGauge cuts it and says so in a line above it, for example “Truncated: showing the first 8 KB and last 8 KB”. The start and end are kept so you can still tell what the value was.

Find a step

A long session can have dozens of steps. Type part of a step’s name in the Find in trace box at the top of the outline. Press ⌘F on a Mac, or Ctrl+F on Windows, to jump straight to the box.
The outline filtered by a search for hold_fare, with callouts on the search box, the match count, and the highlighted match

Searching the outline for hold_fare.

  1. Find in trace. Type part of a name. It does not matter whether you use capitals.
  2. Match count. “1 match”, “3 matches”, or “No matches”.
  3. The match. The matching part of the name is highlighted, the other rows fade, and any turn that contains a match opens by itself. Click the row to see its details.
The box searches the names in the outline, such as tool hold_fare. It does not search the text of the messages. Press Esc, or the cross in the box, to clear it.

Is everything there?

Next to the session name, a small label says how much of the conversation BotGauge recorded. Every session in the sample project shows Complete. The other four labels appear when they apply to your own sessions.

Where the messages come from

The chat is built from the content your app recorded on each turn. If a turn has none, BotGauge reads the message attributes on its steps instead. When it still has no conversation messages, the Transcript shows each turn’s own input and output. The outline, times, and costs come from the steps your app reports.

Which tab should I use?

Messages, Graph view, and Timeline show the same conversation in three ways. Pick the one that answers your question.

Open the Messages tab in the console

Go to BotGauge, open a session in Observability, Logs, and choose Messages.

Try BotGauge →

Common questions

A dash means no cost is recorded for that step. In the sample project, only model calls carry a cost. A turn’s cost covers all of its steps.
They show results from BotGauge’s evaluations. See the Evals overview and Reading results.
A long message in the chat shows its first part with a Show more link. A very large value in a step’s details is cut by BotGauge, and a line above it says which part you are seeing. Raw shows the value as it was stored.
The first turn is open when you load the tab and the others start closed. Click the arrow beside a turn to open it. Searching opens any turn that contains a match.
BotGauge has no turns or steps to show for that session. The panel does not refresh by itself, so if you expect conversation data, close the panel and open the session again after a minute. If the message stays, no steps have been read for that session. Check that your app is sending spans for it. What your app needs to send explains what each step should carry, and Tracing troubleshooting lists common fixes.
Choose Graph view at the top of the panel. It draws the steps of one turn as boxes joined by lines. See Trace Graph.
The screenshots and the video use the BotGauge sample project, which holds a travel assistant, a shop support agent, an IT helpdesk, and a clinic assistant. The interface can change between releases.