Skip to content

agent-wasm: report step token counts in needTools and final outcomes - #4

Merged
ilnmtlbnm merged 2 commits into
mainfrom
step-timing
Oct 19, 2026
Merged

ilnmtlbnm merged 2 commits into
mainfrom
step-timing

Conversation

@ilnmtlbnm

Copy link
Copy Markdown
Member

outcome_to_json dropped each step's timing, so a page could not show the prompt size or the number of generated tokens. Both outcomes now carry timing: {promptTokens, thinkTokens, answerTokens}. Times are left out because they are 0 on wasm32; the page times the step itself. A unit test covers both outcomes, and the module doc describes the field.

outcome_to_json dropped step.timing. Both outcomes now carry
timing: {promptTokens, thinkTokens, answerTokens}, so a page can show
per-step statistics. Times are left out (0 on wasm32); the page times
the step itself.
@ilnmtlbnm
ilnmtlbnm merged commit 5a803a2 into main Oct 19, 2026
3 checks passed
@ilnmtlbnm
ilnmtlbnm deleted the step-timing branch October 19, 2026 09:43
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