There was an error while loading. Please reload this page.
1 parent 90e1e3e commit 68402bdCopy full SHA for 68402bd
src/google/adk/runners.py
@@ -617,6 +617,10 @@ async def run_live(
617
Either `session` or both `user_id` and `session_id` must be provided.
618
"""
619
run_config = run_config or RunConfig()
620
+ # Some native audio models requires the modality to be set. So we set it to
621
+ # AUDIO by default.
622
+ if run_config.response_modalities is None:
623
+ run_config.response_modalities = ['AUDIO']
624
if session is None and (user_id is None or session_id is None):
625
raise ValueError(
626
'Either session or user_id and session_id must be provided.'
0 commit comments