Skip to content

chore: correct README on token usage for DIAL applications - #281

Draft
adubovik wants to merge 1 commit into
developmentfrom
chore/update-readme-about-tokens
Draft

adubovik wants to merge 1 commit into
developmentfrom
chore/update-readme-about-tokens

Conversation

@adubovik

Copy link
Copy Markdown
Collaborator

Summary

The README's note claimed token counts are meaningless for DIAL applications. That's incorrect: DIAL Core injects cumulative token usage for applications, computing each application span's *_tokens as the sum over its entire call subtree (see epam/ai-dial-core#145).

  • Removed the wrong [!NOTE] about tokens being application bugs.
  • Amended the price Mermaid diagram to show trace_id (shared across the whole tree), per-span core_span_id, and prompt_tokens as a cumulative *_tokens example, with a line tying it back to the same double-counting caveat as price.

🤖 Generated with Claude Code

DIAL Core injects cumulative token usage for DIAL applications (sum over
the call subtree), so the note claiming tokens are meaningless for
applications was wrong. Remove it and instead show trace_id, core_span_id
and prompt_tokens (a *_tokens example) on the price diagram.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adubovik
adubovik requested a review from Allob as a code owner July 22, 2026 15:11
@adubovik
adubovik removed the request for review from Allob July 22, 2026 15:12
@adubovik
adubovik marked this pull request as draft July 24, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant