docs: sync schemas and specs with source changes#6014
Draft
github-actions[bot] wants to merge 1 commit into
Draft
docs: sync schemas and specs with source changes#6014github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Add reasoning_tokens property to schemas/token-usage.schema.json. Triggered by commit 58f77fd (fix: add Gemini usageMetadata support to token parsers). The buildGeminiUsage() function maps Gemini's thoughtsTokenCount → reasoning_tokens in the normalized usage object, and normalizeUsage() always emits reasoning_tokens. The field was actively written to token-usage.jsonl but missing from the JSON Schema. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
reasoning_tokenstoschemas/token-usage.schema.json.Triggered by
Commit
58f77fd— fix: add Gemini usageMetadata support to token parsers (#6008)What changed
token-parsers.jsintroducedbuildGeminiUsage(), which maps Gemini'susageMetadata.thoughtsTokenCount→reasoning_tokensin the normalized usage object. ThenormalizeUsage()function already always emittedreasoning_tokens(from OpenAI o-series / Anthropic thinking blocks). However, thereasoning_tokensfield was absent fromschemas/token-usage.schema.json, so the schema did not document a field that is actively written to everytoken-usage.jsonlrecord.Change made
Added
reasoning_tokensproperty toschemas/token-usage.schema.json:No changes needed
docs/awf-config.schema.json—src/cli.tsandsrc/config-file.tschanges are file refactors with no new CLI flags or config fields.schemas/audit.schema.json—src/squid-config.tsandsrc/logs/log-parser.tschanges are facade re-exports, no new log fields.schemas/README.md— schema structure unchanged.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.