Read cost estimates against outcomes
When you weigh what an agent costs, you want to relate cost to whether the work succeeded, so you can judge value and not only spend.
Cost sits next to the outcome
Cost is recorded on the same span that already carries what happened, whether it succeeded, how long it took, and how good the answer was. So you do not read cost in isolation. The difference you can see is between "this session cost four dollars" and "this session cost four dollars and failed, while the cheaper one succeeded."
Ways to read cost against outcomes
-
Cost per successful task. Divide an agent’s cost by the number of tasks that succeeded, rather than by all attempts, so failed and retried work is not hidden.
-
Failure cost by component. Compare each component’s estimated cost in failed sessions with its cost in successful ones, to see which component’s spend grows most when work fails. The per-component estimated cost comes from the session cost breakdown, and success comes from your own outcome signal or an online evaluation result.
-
Cost and quality of two agent versions. Before you ship a change, compare the cost and the quality of the old and new versions on the same work. See Scope and filter by tag or tenant.
Using cost in the observe, evaluate, optimize loop
Because cost is on the span with the outcome, you can use it as a signal, not only a report:
-
Evaluation gating. Gate a release on a cost-versus-quality regression, not only on quality.
-
Optimizer signal. Use cost as a reward signal to prefer the cheaper path that still succeeds.
-
Alarms on real cost. Alarm on a per-agent dollar threshold rather than a proxy such as token count. See Publish cost as CloudWatch metrics.