glossary

Observability

Time to first token (TTFT)

Time to first token is the wait from a defined start, usually the request being sent, until the first token of the reply arrives, and it excludes the gaps between the tokens that follow.

Abracadabra Team Glossary

How it works

On a streamed reply, the first token is when the answer begins. Time to first token is the wait until then, from a start you name. A common start is the request handed to the model. A start at the handset includes your queue and network, and you should say so. The metric ends at the first token, not the last. Pauses after that are inter-token latency, and the wait until the reply is finished is latency for a different end. A non-streamed call delivers the whole reply at once. It has no first token in this sense, and it should not share the series.

An officer drafts a council tax reply. The resident asked why the bill is higher. The stream begins with "The" and only later names the band. Time to first token ends at "The". It can be short while the officer still waits for the band, the amount, and the date. A fast first token is a property of the stream. It does not mean the explanation was complete, and it is not the wall time until the reply can be sent.

A worked example

The first word of a council tax draft

Officer: draft a reply on why this resident's council tax bill is higher. The band changed in April.

Start: the request is sent to the model. First token: "The", 700 milliseconds later. That interval is time to first token.

The band, the amount, and the April date arrive over the following seconds. Those gaps are not part of this metric. The wait until the draft is complete, from the same start to the last token, is a different measurement.

With streaming off, the officer sees nothing until the whole reply returns. That call does not belong in this series. The 700 milliseconds also do not say the band and the amount were right.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The clock stops at the first HTTP byte, which can be a header rather than a token. The chart flatters the model, and the officer still sees a blank draft.
  • Streamed and non-streamed calls share one series. Calls with no first token either vanish or they inflate the average.
  • A short time to first token is reported as a fast answer. The band and the amount arrive later, which is where the officer actually waits. The series and the finished draft are different facts.

How to measure it

Define the start and record it next to the series. End the timer at the first token of the model output, not at a transport byte and not at the last token. Keep non-streamed calls out of this series.

Publish the distribution. A median can look fine while the slowest tenth leaves the officer staring at an empty box. Read a slow first token against the spans before it, and read answer quality separately.

Further reading

How Abracadabra helps

Time to first token is a streaming fact from the trace. It does not say the council tax reply answered the question. Keep that outcome on the conversation even when the first token arrived quickly.

A trace says the run finished. Abracadabra says whether the person got the job they came to do, and keeps that outcome on the conversation. It complements tracing and OpenTelemetry. It does not ingest spans or replace a trace tool.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.