Skip to content

[SSR Agent] Issue Fix (311): Document prompt and candidate token counts in hook reference - #313

Open
joneba-google wants to merge 1 commit into
mainfrom
ssr-agent-311
Open

joneba-google wants to merge 1 commit into
mainfrom
ssr-agent-311

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #311
Original Issue URL: #311

Context & Problem

In the stable model API reference documentation, the LLMResponse.usageMetadata section listed only totalTokenCount. This omitted promptTokenCount and candidatesTokenCount, which were added to the runtime implementation but not documented.

Detailed Changes

  • docs/hooks/reference.md: Updated the schema documentation for LLMResponse.usageMetadata to include promptTokenCount: number and candidatesTokenCount: number alongside totalTokenCount.

Verification

  • Verified consistency by matching the documentation schema with the corresponding TS interface in packages/core/src/hooks/hookTranslator.ts.
  • Checked and verified that linter was skipped since no TypeScript/JavaScript files were modified in the commit.

@github-actions github-actions Bot added the size/XS XS: <10 lines changed label Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

📊 PR Size: size/XS

  • Lines changed: 2
  • Additions: +1
  • Deletions: -1
  • Files changed: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS XS: <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(hooks): LLMResponse usageMetadata in the reference omits promptTokenCount and candidatesTokenCount (the hook receives all three)

1 participant