From 923d8066373bfad01bbf4cc2aea460e4cfadb228 Mon Sep 17 00:00:00 2001 From: Vignesh Iyer Date: Mon, 21 Apr 2025 23:23:57 -0700 Subject: [PATCH 1/2] Copybara import of the project: -- 94c7f9579c56cb20252fd61b5fe568f73d864679 by Vignesh Iyer : chore: add support for overriding `skip_summarization` in AgentTool COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/324 from vgnshiyer:main 94c7f9579c56cb20252fd61b5fe568f73d864679 PiperOrigin-RevId: 750060638 --- 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 460a83f..3efafdb 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) From 0e9096d8657a8684a20e9d9ae5467726c544bb1c Mon Sep 17 00:00:00 2001 From: Vignesh Iyer <39982819+vgnshiyer@users.noreply.github.com> Date: Tue, 22 Apr 2025 09:41:31 -0700 Subject: [PATCH 2/2] chore: add support for overriding `skip_summarization` in AgentTool (#324)