mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-20 04:12:21 -06:00
Changes for 0.1.0 release
This commit is contained in:
@@ -259,6 +259,10 @@ class Runner:
|
||||
|
||||
Yields:
|
||||
The events generated by the agent.
|
||||
|
||||
.. warning::
|
||||
This feature is **experimental** and its API or behavior may change
|
||||
in future releases.
|
||||
"""
|
||||
# TODO: right now, only works for a single audio agent without FC.
|
||||
invocation_context = self._new_invocation_context_for_live(
|
||||
@@ -416,9 +420,16 @@ class Runner:
|
||||
if self.agent.sub_agents and live_request_queue:
|
||||
if not run_config.response_modalities:
|
||||
# default
|
||||
run_config.response_modalities = ['AUDIO', 'TEXT']
|
||||
run_config.response_modalities = ['AUDIO']
|
||||
if not run_config.output_audio_transcription:
|
||||
run_config.output_audio_transcription = (
|
||||
types.AudioTranscriptionConfig()
|
||||
)
|
||||
elif 'TEXT' not in run_config.response_modalities:
|
||||
run_config.response_modalities.append('TEXT')
|
||||
if not run_config.output_audio_transcription:
|
||||
run_config.output_audio_transcription = (
|
||||
types.AudioTranscriptionConfig()
|
||||
)
|
||||
return self._new_invocation_context(
|
||||
session,
|
||||
live_request_queue=live_request_queue,
|
||||
|
||||
Reference in New Issue
Block a user