Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for invocation token and response token for cost tracking and audit #109

Open
blanketspy99 opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@blanketspy99
Copy link

Use case

It would be great if the default agent also supports adding or emitting a custom callback which gives the number of tokens used for the query. This would help in effective cost tracking on the users query.

Also, if this can auto capture in the storage backend, it would be super helpful.

Currently I can probably write a custom agent but have to figure out on how to get it integrated with custom storage.

Solution/User Experience

Solution probably to have the metadata capture at the end of response and store it's token count details to the corresponding chat history item record/row.

Alternative solutions

No response

@cornelcroi cornelcroi added enhancement New feature or request and removed triage labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants