From 94c7f9579c56cb20252fd61b5fe568f73d864679 Mon Sep 17 00:00:00 2001 From: Vignesh Iyer Date: Mon, 21 Apr 2025 20:40:18 -0700 Subject: [PATCH] chore: add support for overriding `skip_summarization` in AgentTool --- src/google/adk/tools/agent_tool.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/google/adk/tools/agent_tool.py b/src/google/adk/tools/agent_tool.py index 460a83fc9f6..3efafdbc462 100644 --- a/src/google/adk/tools/agent_tool.py +++ b/src/google/adk/tools/agent_tool.py @@ -45,10 +45,9 @@ class AgentTool(BaseTool): skip_summarization: Whether to skip summarization of the agent output. """ - def __init__(self, agent: BaseAgent): + def __init__(self, agent: BaseAgent, skip_summarization: bool = False): self.agent = agent - self.skip_summarization: bool = False - """Whether to skip summarization of the agent output.""" + self.skip_summarization: bool = skip_summarization super().__init__(name=agent.name, description=agent.description)