Skip to content

[pull] main from google:main#30

Merged
pull[bot] merged 1 commit into
Android-studio61:mainfrom
google:main
May 15, 2026
Merged

[pull] main from google:main#30
pull[bot] merged 1 commit into
Android-studio61:mainfrom
google:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 15, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


Summary by cubic

Rewrote the RunConfig docs into a use‑case guide with verified Python/TypeScript/Go/Java examples. Corrects the Python import path, clarifies streaming modes, and documents new runtime options for live agents, sessions, and limits.

  • Refactors

    • Shifted from per-field tables to focused sections (sessions/context, streaming, audio/speech, live agents, limits/debugging) with short examples.
    • Documented 11 previously missing fields, including get_session_config, context_window_compression, realtime_input_config, proactivity, enable_affective_dialog, avatar_config, session_resumption, save_live_blob, tool_thread_pool_config, custom_metadata, and input_audio_transcription.
    • Updated TypeScript examples to use Modality from @google/genai; added API reference links per language.
  • Bug Fixes

    • Fixed Python import path to from google.adk.agents.run_config import RunConfig, StreamingMode.
    • Clarified that StreamingMode.BIDI isn’t used by run_async(); bidirectional streaming goes through runner.run_live().
    • Corrected defaults and examples for audio transcription and CFC usage; removed deprecated save_input_blobs_as_artifacts from examples.

Written for commit 889e32d. Summary will update on new commits. Review in cubic

* Fix RunConfig docs: correct import path and add missing fields

The Python import was documented as `from google.genai.adk import
RunConfig, StreamingMode`, but the actual import path in adk-python is
`from google.adk.agents.run_config import RunConfig, StreamingMode`.
Corrected all four occurrences.

Synced the page against
https://github.com/google/adk-python/blob/main/src/google/adk/agents/run_config.py:

- Added 11 previously undocumented fields to the class definition, the
  parameter table, and dedicated sections: avatar_config,
  input_audio_transcription, realtime_input_config,
  enable_affective_dialog, proactivity, session_resumption,
  context_window_compression, save_live_blob, tool_thread_pool_config,
  custom_metadata, get_session_config.
- Marked save_input_blobs_as_artifacts as deprecated and pointed readers
  to SaveFilesAsArtifactsPlugin; removed it from the comprehensive
  Python example.
- Corrected StreamingMode.BIDI description: it is not used by
  run_async(); bidirectional streaming goes through runner.run_live().
- Fixed output_audio_transcription default in the table (the field uses
  default_factory=AudioTranscriptionConfig, not None).
- Added a ToolThreadPoolConfig example with a GIL note and a
  GetSessionConfig example.

* Rework RunConfig docs from per-field API ref duplication into a use-case-oriented guide with verified multi-language code samples

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
@pull pull Bot locked and limited conversation to collaborators May 15, 2026
@pull pull Bot added the ⤵️ pull label May 15, 2026
@pull pull Bot merged commit 889e32d into Android-studio61:main May 15, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant