diff --git a/src/google/adk/apps/llm_event_summarizer.py b/src/google/adk/apps/llm_event_summarizer.py index 5e88a0bc02d..6638b28796c 100644 --- a/src/google/adk/apps/llm_event_summarizer.py +++ b/src/google/adk/apps/llm_event_summarizer.py @@ -50,7 +50,13 @@ class LlmEventSummarizer(BaseEventsSummarizer): ' It may or may not start from a compacted history. Please identify and' ' reiterate the user request, summarize the context so far, focusing on' ' key decisions made and information obtained, as well as any unresolved' - ' questions or tasks. The summary should be concise and capture the' + ' questions or tasks. ' + 'CRITICAL INSTRUCTIONS: ' + '1. Explicitly identify and state the primary language used by the user ' + 'at the top of your summary (e.g., "Conversation Language: English"). ' + '2. If the agent called any tools, accurately list the exact tool names ' + 'used to maintain tool grounding. ' + 'The rest of the summary should be concise and capture the' ' essence of the interaction.\n\n{conversation_history}' )