Skip to content

[Feature]: Add reasoningTokens and cachedTokens to ChatUsage #1264

@seems20

Description

@seems20

AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.

Is your feature request related to a problem? Please describe.
ChatUsage currently exposes only inputTokens and outputTokens. For reasoning models, this is not enough for cost/observability analysis, because reasoning tokens and cached tokens are also important.

Describe the solution you'd like
Add optional fields to ChatUsage, such as:

  • reasoningTokens (or thinkingTokens)
  • cachedTokens

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions