Skip to content

Constructor to have param to skip_summarization #173

Closed

Description

@ChandanInfonetica

https://github.com/google/adk-python/blob/577222509c0f7ff7bd1fa4317eb20fd871a37daa/src/google/adk/tools/agent_tool.py#L48C1-L54C1

We need ability to override the skip_summarization and also Agent As a Tool is not able to call a tool as Function Response.

I have rootAgent which has [tool, agent_tool] as toolset. And agent_tool had [tool1] as available tools. but its not calling tool1 even when explicitly said only call tool always.

Activity

  1. hangfei commented on Apr 15, 2025

    @hangfei
    Collaborator

    Could you share a minimal example to reproduce the issue?

  2. self-assigned this
    on Apr 15, 2025
  3. garrettlove8 commented on Apr 18, 2025

    @garrettlove8

    Also running into this. Here is my code, let me know if more of it is need (I think it's just this line that's needed to reproduce).

    root_agent = Agent(
        ...
        tools=[AgentTool(agent=summary_agent, skip_summarization=True)],
    )
  4. added theissue type on Apr 19, 2025
  5. hangfei commented on Apr 22, 2025

    @hangfei
    Collaborator

    Yeah. confirmed it's a bug on ADK.

    This is a good issue for community to work on as good-first-issue.

  6. added
    good first issue
    on Apr 22, 2025
  7. satoshi-harimoto commented on Apr 22, 2025

    @satoshi-harimoto

    I have the code below:

        my_agent = Agent(
            name="...", 
            model=agent_model,
            description="...",
            instruction="You are the main Agent...",
            tools=[ 
                AgentTool(agent=agent1,skip_summarization=False), 
                AgentTool(agent=agent2,skip_summarization=False)
                ]
        )
    

    Then when I ran, I have

    AgentTool.__init__() got an unexpected keyword argument 'skip_summarization'
    

    Where should I put the skip_summarization parameter?

  8. hangfei commented on Apr 22, 2025

    @hangfei
    Collaborator

    you need to build the wheel from source. the changes are not updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions