Skip to content

[SSR Agent] Issue Fix (325): Add missing token count fields to LLMResponse schema - #326

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

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

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #325

Context & Problem

The hooks reference documentation in docs/hooks/reference.md lists LLMResponse.usageMetadata as containing only totalTokenCount, omitting promptTokenCount and candidatesTokenCount. This documentation omission was corrected to fully reflect all fields translated in the hook translation layer.

Detailed Changes

Updated docs/hooks/reference.md under the LLMResponse schema definition in the Stable Model API section to include the missing promptTokenCount: number and candidatesTokenCount: number fields in usageMetadata.

Verification

Inspected docs/hooks/reference.md to confirm that the LLMResponse schema accurately documents the usageMetadata fields.

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

Copy link
Copy Markdown

📊 PR Size: size/XS

  • Lines changed: 6
  • Additions: +5
  • 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