aws / aws/amazon-q-developer-cli

Feature Request: Usage statistics for q chat --non-interactive

Open
#3,298 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

I would like to be able to get the usage statistics after executing a non-interactive chat like I can with an interactive chat.

Ideally I could call `q chat --no-interactive --trust-all-tools **--usage** 'how do you say hello in french?'`

And be returned my response with the usage statistics run last ex:
Current context window (17640 of 200k tokens used)
███████ 8.82%

█ Context files: ~2540 tokens (1.27%)
█ Tools: ~2720 tokens (1.36%)
█ Q responses: ~500 tokens (0.25%)
█ Your prompts: ~11880 tokens (5.94%)

Or as a JSON object.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.