Skip to content

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

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara_1024060937
Open

copybara-service[bot] wants to merge 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 3 times, most recently from 53e4569 to f32f79e Compare November 18, 2026 07:04
…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: 1024060937
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