---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Read each agent turn's time and cost

Agent logs now show a turn's duration, token usage and model cost when available.

If a drafted reply took longer than expected, you can inspect that turn in the agent logs. Its detail now shows the start and end time, duration, input and output tokens, cache reads and writes, and cost in US dollars.

Open the turn in the logs, or run `segmentstream agent logs show` for a turn you know. The figures come from the turn's trace when you read it; an unavailable or expired trace leaves them unknown rather than reporting zero. This does not count model calls.
