Repository navigation
feat(agent): store the run stats in BigQuery - #716
Open
omkargaikwad23 wants to merge 2 commits into
Open
omkargaikwad23 wants to merge 2 commits into
omkargaikwad23 wants to merge 2 commits into
Conversation
With num_trials above 1, the bigquery reporter appends the stats of each scenario to the run_stats table. Each stats column now has one type in every job, so a later load into the same table does not fail.
omkargaikwad23
requested review from
IsmailMehdi,
helloeve and
prernakakkar-google
as code owners
November 18, 2026 08:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #713.
What
With
num_trialsabove 1, thebigqueryreporter also stores the stats of each scenario. It appends the rows to a newrun_statstable, in the same dataset as the other tables.run_stats.csv. Numbers stay numbers, so a query can aggregate them._.goal_completionscorer gave text for 7 columns that are numbers in other jobs.resultsandscorestables need no change. A multi-trial job already sendsprompt_idandtrial_indexwith each row.Nothing changes with one trial. A delegated reporter (
delegated: true) does not get the stats.Why
run_stats.csvstays on the machine that ran the job. In BigQuery, a team can compare the stats of many jobs and use them in dashboards.Testing
Not run: a job that writes to BigQuery.