Skip to content

feat(studio): add agent usage statistics - #873

Merged
yaozheng-fang merged 1 commit into
volcengine:mainfrom
evanlowe:feat/agent-usage-stats
Aug 12, 2026
Merged

feat(studio): add agent usage statistics#873
yaozheng-fang merged 1 commit into
volcengine:mainfrom
evanlowe:feat/agent-usage-stats

Conversation

@evanlowe

Copy link
Copy Markdown
Contributor

Summary

  • record successful Studio Agent invocations as immutable TOS events using trusted server-side user identity
  • expose an authorized, paginated usage summary API with invocation totals and per-user activity
  • add a 用量统计 tab to Agent details with loading, empty, retry, and pagination states
  • document the storage layout and refresh the bundled Studio assets

Validation

  • npm test — 466 passed
  • npm run build — passed
  • Agent usage/storage tests — 19 passed
  • runtime proxy and Studio RBAC regression tests — 81 passed
  • pre-commit (ruff check, ruff format, hardcoded secret detection) — passed
  • Pyright on the new backend and tests — 0 errors
  • verified a live TOS event aggregates to 1 invocation, 1 user, and 1 detail row

Notes

  • writes are intentionally best-effort so TOS failures never interrupt Agent responses
  • the initial implementation aggregates immutable events at read time; compaction/indexing can be added if event volume requires it

@evanlowe
evanlowe force-pushed the feat/agent-usage-stats branch from 92ecc90 to 3e39edb Compare August 11, 2026 17:20
@evanlowe
evanlowe force-pushed the feat/agent-usage-stats branch from 3e39edb to cf9500e Compare August 11, 2026 17:27
@yaozheng-fang
yaozheng-fang merged commit fe0b256 into volcengine:main Aug 12, 2026
7 checks passed
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.

2 participants