superagent
superagent copied to clipboard
Save token usage statistics to DB
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.