diff --git a/src/google/adk/agents/run_config.py b/src/google/adk/agents/run_config.py index 5679f04e..c9a50a0a 100644 --- a/src/google/adk/agents/run_config.py +++ b/src/google/adk/agents/run_config.py @@ -73,6 +73,12 @@ class RunConfig(BaseModel): realtime_input_config: Optional[types.RealtimeInputConfig] = None """Realtime input config for live agents with audio input from user.""" + enable_affective_dialog: Optional[bool] = None + """If enabled, the model will detect emotions and adapt its responses accordingly.""" + + proactivity: Optional[types.ProactivityConfig] = None + """Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.""" + max_llm_calls: int = 500 """ A limit on the total number of llm calls for a given run. diff --git a/src/google/adk/flows/llm_flows/basic.py b/src/google/adk/flows/llm_flows/basic.py index 7efadd97..ee5c83da 100644 --- a/src/google/adk/flows/llm_flows/basic.py +++ b/src/google/adk/flows/llm_flows/basic.py @@ -68,6 +68,12 @@ class _BasicLlmRequestProcessor(BaseLlmRequestProcessor): llm_request.live_connect_config.realtime_input_config = ( invocation_context.run_config.realtime_input_config ) + llm_request.live_connect_config.enable_affective_dialog = ( + invocation_context.run_config.enable_affective_dialog + ) + llm_request.live_connect_config.proactivity = ( + invocation_context.run_config.proactivity + ) # TODO: handle tool append here, instead of in BaseTool.process_llm_request.