Files
Botta Venkata Leela Raman Raj f3d445b211 Fix RunConfig docs: correct import path and add missing fields (#1764)
* 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>
2026-05-19 18:00:58 +00:00
..