Skip to content
AI Engineer Guide.

Agent trace

Step through a tool-using agent turn and watch tokens and cost accumulate.

step 2/5 · 240 tokens · $0.0006
  1. thought

    I need the order status. Call lookup_order with the customer ID.

  2. tool

    lookup_order({ customer_id: 'c_82' }) → 200 OK, 2 orders

Each tool result returns to the context and costs tokens. Retries and loops multiply this trace; a step cap is not optional.

Related: Agent traces