superagent icon indicating copy to clipboard operation
superagent copied to clipboard

Save token usage statistics to DB

Open homanp opened this issue 1 year ago • 0 comments

Summary

In order to introduce spending limits we would want to save the token usage for an agent in the DB

Expected behaviour

Create a new DB table for saving tokens and cost estimations. Each run should be saved as a run entry. One to many relationship between usage and agent.

homanp avatar May 12 '23 12:05 homanp