Runtime Configuration¶
Supported in ADKPython v0.1.0TypeScript v0.2.0Go v0.1.0Java v0.1.0Kotlin v0.1.0
RunConfig controls how agents behave at runtime, including streaming mode,
speech settings, LLM call limits, and live agent options. Pass a RunConfig
to runner.run_async() or runner.run_live() to override default behavior.
Manage sessions and context¶
Supported in ADKPython
For long-running sessions, you can control how much history is loaded and whether the context window is compressed:
get_session_config: Limits which events are fetched when loading a session. Usenum_recent_eventsorafter_timestampto avoid loading the full event history on every invocation. These filters limit the loaded view without deleting stored events. New events are appended to the stored history, preserving older events excluded from the loaded view.context_window_compression: Enables context window compression for LLM input, useful when sessions approach model context limits.include_thoughts_from_other_agents: Controls whether thought parts from other agents are included in the LLM context. Disabled by default.