Skip to content

feat: cap rows returned to the agent context - #63

Merged
vrtornisiello merged 1 commit into
stagingfrom
feat/add-rows-limit
Aug 7, 2026
Merged

feat: cap rows returned to the agent context#63
vrtornisiello merged 1 commit into
stagingfrom
feat/add-rows-limit

Conversation

@vrtornisiello

Copy link
Copy Markdown
Collaborator

execute_bigquery_sql now serializes at most MAX_CONTEXT_ROWS (1000) rows into the agent's context, so a large result no longer blows up the context. row_count reports the true total, and when the result is truncated a truncated flag plus truncation_note are surfaced so the agent knows it is seeing a prefix. The full result stays materialized in BigQuery and remains downloadable via query_ref.

execute_bigquery_sql now serializes at most MAX_CONTEXT_ROWS (1000) rows
into the agent's context, so a large result no longer blows up the context.
row_count reports the true total, and when the result is truncated a `truncated` flag
plus `truncation_note` are surfaced so the agent knows it is seeing a prefix.
The full result stays materialized in BigQuery and remains downloadable via query_ref.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vrtornisiello
vrtornisiello merged commit ef6319f into staging Aug 7, 2026
1 check passed
@vrtornisiello
vrtornisiello deleted the feat/add-rows-limit branch August 7, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant