Skip to content

fix: raise API errors on mid-stream Agent Engine stream_query error frames - #7311

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara_1024060937
Nov 18, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
copybara_1024060937

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

fix: raise API errors on mid-stream Agent Engine stream_query error frames

Detect terminal JSON error frames (errorCode/errorMessage) emitted after an
HTTP 200 streaming response starts and raise google.genai.errors.APIError in
the GenAI Agent Engine and Agent Platform SDKs, while leaving normal payloads
and ADK event objects unchanged.

@copybara-service
copybara-service Bot requested a review from a team as a code owner November 17, 2026 23:45
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Nov 17, 2026
@copybara-service
copybara-service Bot force-pushed the copybara_1024060937 branch 6 times, most recently from faec498 to 173b31f Compare November 18, 2026 18:03
…rames

Detect terminal JSON error frames (`errorCode`/`errorMessage`) emitted after an
HTTP 200 streaming response starts and raise `google.genai.errors.APIError` in
the GenAI Agent Engine and Agent Platform SDKs, while leaving normal payloads
and ADK event objects unchanged.

PiperOrigin-RevId: 1024779541
@copybara-service
copybara-service Bot merged commit 99fd15c into main Nov 18, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. google-contributor size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant