You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: parse Server-Sent Events in Agent Engine streaming responses
Agent Engine streaming responses are newline-delimited JSON. A response may
instead arrive as Server-Sent Events, with each JSON object wrapped in a
`data:` frame. The streaming readers now remove that framing before parsing, so
both shapes yield the same parsed objects rather than raw `data: {...}`
strings, and the `HttpBody` reader parses a `text/event-stream` response rather
than yielding the unparsed message.
Newline-delimited JSON responses are unaffected.
PiperOrigin-RevId: 959194089
0 commit comments