Skip to content

feat: add ChatUsage to Msg metadata for token usage tracking#118

Merged
chickenlj merged 1 commit intoagentscope-ai:mainfrom
AlbumenJ:1202-chatusage
Dec 2, 2025
Merged

feat: add ChatUsage to Msg metadata for token usage tracking#118
chickenlj merged 1 commit intoagentscope-ai:mainfrom
AlbumenJ:1202-chatusage

Conversation

@AlbumenJ
Copy link
Collaborator

@AlbumenJ AlbumenJ commented Dec 2, 2025

Fix #114

Change-Id: I66bf5257d04e5110b6f4fa189b0c11c772984261
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../src/main/java/io/agentscope/core/message/Msg.java 50.00% 1 Missing and 1 partial ⚠️
...scope/core/agent/accumulator/ReasoningContext.java 94.11% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Collaborator

@chickenlj chickenlj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@chickenlj chickenlj merged commit 2bf09ec into agentscope-ai:main Dec 2, 2025
4 checks passed
JGoP-L pushed a commit to JGoP-L/agentscope-java that referenced this pull request Dec 29, 2025
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.

How to retrieve prompts and token usage during agent execution

2 participants