Copybara import of the project:

--
94c7f9579c56cb20252fd61b5fe568f73d864679 by Vignesh Iyer <vgnshiyer@gmail.com>:

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
This commit is contained in:
Vignesh Iyer 2025-04-21 23:23:57 -07:00 committed by Copybara-Service
parent 21d2047ddc
commit 923d806637

View File

@ -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)