Skip to content

Fix RunConfig docs: correct import path and add missing fields#1764

Merged
koverholt merged 2 commits into
google:mainfrom
Raman369AI:fix/runconfig-import-and-missing-fields
May 15, 2026
Merged

Fix RunConfig docs: correct import path and add missing fields#1764
koverholt merged 2 commits into
google:mainfrom
Raman369AI:fix/runconfig-import-and-missing-fields

Conversation

@Raman369AI
Copy link
Copy Markdown
Contributor

Summary

The RunConfig documentation page was out of sync with the actual implementation in adk-python. This PR brings it back in line.

Import path (critical)

All Python examples used:

from google.genai.adk import RunConfig, StreamingMode  # does not exist

The actual import is:

from google.adk.agents.run_config import RunConfig, StreamingMode

Fixed across all four occurrences.

Missing fields

Added 11 previously undocumented fields to the Python class definition, the parameter table, and dedicated subsections:

  • avatar_config
  • input_audio_transcription
  • realtime_input_config
  • enable_affective_dialog
  • proactivity
  • session_resumption
  • context_window_compression
  • save_live_blob
  • tool_thread_pool_config (with code example + GIL note)
  • custom_metadata
  • get_session_config (with code example)

Deprecations

  • Marked save_input_blobs_as_artifacts as deprecated and pointed readers to SaveFilesAsArtifactsPlugin. Removed it from the comprehensive Python example.

Corrections

  • StreamingMode.BIDI: the docs claimed it enables bidirectional streaming. The source comment is explicit that BIDI is not used by run_async() and that real bidirectional streaming goes through runner.run_live(). Updated the description accordingly.
  • output_audio_transcription: default in the table corrected from None to AudioTranscriptionConfig() (the field uses default_factory=types.AudioTranscriptionConfig).

Test plan

  • mkdocs serve builds with no errors or warnings
  • /runtime/runconfig/ page renders and includes the new sections
  • No remaining references to google.genai.adk on the page

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.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit af26c74
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6a0758a9c71b4800085bde6f
😎 Deploy Preview https://deploy-preview-1764--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

…ase-oriented guide with verified multi-language code samples
Copy link
Copy Markdown
Collaborator

@koverholt koverholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and updates. This PR was a good reminder that the RunConfig page was due for a rewrite/refactor, since in its current state it looks more like a duplicate of the API reference page which is light on concepts/use cases and is high maintenance in terms of updating individual params and manual doc strings.

Instead, I pushed changes to rework the RunConfig docs page from a per-field API reference duplication into a use-case-oriented guide organized around five common tasks: session management, streaming, audio/speech, live agents, and runtime limits. And links to the API reference docs are provided so we don't have to maintain all of that here across all language SDKs.

Also fixed several code samples from the pre-existing page including incorrect Python imports, TypeScript type errors, deprecated Java builder methods.

@koverholt koverholt merged commit 889e32d into google:main May 15, 2026
6 checks passed
@Raman369AI Raman369AI deleted the fix/runconfig-import-and-missing-fields branch May 15, 2026 23:34
@Raman369AI
Copy link
Copy Markdown
Contributor Author

Thank you @koverholt

joefernandez pushed a commit that referenced this pull request May 19, 2026
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants