Every reply an agent writes is a run: see the tokens it used and the credits it cost.
Before you start
You need a reply from an agent. See Chat with an agent.
See what a run cost
- Sign in to the CLI.
- Set
PROJECTto your project's ID (Find your IDs):export PROJECT=<id>. - List the project's runs, newest first:
Shell
npx veryfront project runs project-list --project-reference $PROJECT - Set
RUN_IDto theidof the run you want, from the list above:export RUN_ID=<id>. - Get the run. You should now see
usagewith itsmodel_calls,tokens, andcostwith itscredits:Shellnpx veryfront project runs get --run-id $RUN_ID
Try it in a sandbox
Set PROJECT
Add the support agent
Ask it a question
Let the agent answer
Wait for the answer
List the runs
Set RUN_ID
Check it