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

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

Đang mở
#75 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
184
Fork
38
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.