agentscope-ai / agentscope-ai/agentscope-runtime-java

[Bug] LLM Token Usage and Metadata Lost in Runtime Layer — Not Exposed in API Responses

未關閉
#75 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。