fix(gemini realtime): cast merged realtimeInputConfig for typeddict assignment

mypy flagged the assignment of the merged dict into
BidiGenerateContentSetup.realtimeInputConfig with [typeddict-item]: the
intermediate variable widens to dict[Any, Any], losing the TypedDict
narrowing the previous dict-literal form had.
This commit is contained in:
mateo-berri 2026-05-22 22:29:15 +00:00
parent bafc187248
commit d1a9da3514
No known key found for this signature in database

View file

@ -397,7 +397,10 @@ class GeminiRealtimeConfig(BaseRealtimeConfig):
**original_automatic_activity_detection,
**new_automatic_activity_detection,
}
follow_up_setup["realtimeInputConfig"] = merged_realtime_input_config
follow_up_setup["realtimeInputConfig"] = cast(
BidiGenerateContentRealtimeInputConfig,
merged_realtime_input_config,
)
verbose_logger.debug(
"Gemini Realtime: Forwarding session.update as follow-up setup"
)