We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5772225 commit d1adaa7Copy full SHA for d1adaa7
src/google/adk/tools/agent_tool.py
@@ -45,11 +45,10 @@ class AgentTool(BaseTool):
45
skip_summarization: Whether to skip summarization of the agent output.
46
"""
47
48
- def __init__(self, agent: BaseAgent):
+ def __init__(self, agent: BaseAgent, skip_summarization: bool = False):
49
+ """Initialize the AgentTool with an agent and optional skip_summarization value."""
50
self.agent = agent
- self.skip_summarization: bool = False
51
- """Whether to skip summarization of the agent output."""
52
-
+ self.skip_summarization = skip_summarization
53
super().__init__(name=agent.name, description=agent.description)
54
55
@model_validator(mode='before')
0 commit comments