Skip to content

Bug For ADK #437

@growmuye

Description

@growmuye

`
async def get_weather(tool_context:ToolContext,location: str = "the entire world") -> str:
"""Get the weather in a given location.
Args:
location: The location to get the weather for.
Returns:
the weather in the specified location.
"""
tool_context.actions.skip_summarization=True
return "it is sunny in " + location

from google.adk.agents.llm_agent import LlmAgent

weather_agent = LlmAgent(
    model=...,
    name="weather_agent",
    instruction=f"""
      You are an expert weather analyzer that can tell the current weather in a specific location.
      Use the get_weather tool to get the weather in a specific location. If the user doesn't specify
      a location, use "the entire world" as the location.
      """,
    tools=[get_weather],
)

`
当添加 tool_context.actions.skip_summarization=True后,一个无奈的现象出现了(StreamMode=SSE)"ag-ui-adk>=0.3.1","google-adk[eval]==1.15.1",

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions