@@ -264,7 +264,7 @@ async def test_sets_translation_config(self):
264264 )
265265 invocation_context = await _create_invocation_context (agent )
266266 invocation_context .run_config = RunConfig (
267- translation_config = types .StreamTranslationConfig (
267+ translation_config = types .TranslationConfig (
268268 target_language_code = 'pl' ,
269269 echo_target_language = True ,
270270 ),
@@ -275,11 +275,9 @@ async def test_sets_translation_config(self):
275275 async for _ in processor .run_async (invocation_context , llm_request ):
276276 pass
277277
278- stream_translation_config = (
279- llm_request .live_connect_config .stream_translation_config
280- )
281- assert stream_translation_config .target_language_code == 'pl'
282- assert stream_translation_config .echo_target_language is True
278+ translation_config = llm_request .live_connect_config .translation_config
279+ assert translation_config .target_language_code == 'pl'
280+ assert translation_config .echo_target_language is True
283281
284282 @pytest .mark .asyncio
285283 async def test_translation_config_defaults_to_none (self ):
@@ -295,4 +293,4 @@ async def test_translation_config_defaults_to_none(self):
295293 async for _ in processor .run_async (invocation_context , llm_request ):
296294 pass
297295
298- assert llm_request .live_connect_config .stream_translation_config is None
296+ assert llm_request .live_connect_config .translation_config is None
0 commit comments