agentscope-ai / agentscope-ai/agentscope-runtime-java
[Bug] LLM Token Usage and Metadata Lost in Runtime Layer — Not Exposed in API Responses
未關閉
bug
- 主要語言
- Java
- 星號
- 184
- 分支
- 38
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### Description
The **core Agent framework correctly captures and returns `TokenUsage` and other metadata** in response.
However, the **Runtime layer discards this information** when adapting and passing the final response to clients.
As a result:
- End users or frontend cannot see how many tokens were used
- Billing, auditing, and optimization use cases are blocked
- Observability is incomplete despite data being available internally
This is a **data loss issue in the runtime pipeline**
貢獻指南
評估
這個 Issue 還沒有評估資料。