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(samples): Fix monitor_video_stream in live bidi streaming sample
- Fix TypeError by adding required model parameter to generate_content call.
- Support Vertex AI (GCP) authentication via gcloud credentials by allowing Client configuration via environment variables.
- Fix deadlock by yielding correct type (string count) instead of full GenerateContentResponse from monitor_video_stream.
- Clean up duplicate imports.
- Update agent system instruction with CRITICAL warning to restrict calling monitor tools to at most once per request and explain the background streaming behavior.
- Improve monitor tools (video and stock) docstrings with CRITICAL warnings to instruct the model to call them only once and wait for background updates.
Co-authored-by: Liang Wu <wuliang@google.com>
PiperOrigin-RevId: 947835801
0 commit comments