adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Agent-as-a-tool code example is wrong

Open hkbb2014 opened this issue 1 year ago • 2 comments

https://google.github.io/adk-docs/tools/function-tools

In the doc, the agent-as-a-tool code example is wrong.

Image

I guess we should pass root_agent to Runner, right? otherwise you just run the summary_agent directly.

runner = Runner(agent=root_agent, app_name=APP_NAME, session_service=session_service)

hkbb2014 avatar Apr 16 '25 01:04 hkbb2014

Hi @hkbb2014 fix is already merged https://github.com/google/adk-docs/pull/93

AlexRAV avatar Apr 16 '25 05:04 AlexRAV

thanks @AlexRAV

hkbb2014 avatar Apr 16 '25 05:04 hkbb2014