google / google/adk-python

A2A remote agent client does not load description from agent card on start up

未关闭
#4,064 7 条评论 0 个 reaction 已指派 1 人 已指派给 @wuliang229 在 GitHub 查看
a2a needs review
主要语言
Python
星标
21.5k
派生
4k
平均合并
1 天 14 小时
30 天内合并 PR
37

描述

**Describe the bug**
Cold-start problem with remote agent descriptions via the RemoteA2aAgent client in google/adk/agents/remote_a2a_agent.py

1. If you don't supply a description to the remote agent client, then until your messages to the root agent happen to invoke the remote agent, the description will remain empty, relying on the agent name or system instruction alone for delegation to that remote agent. At that point, the description should be loaded by `_ensure_resolved`

2. If you do provide a description, then you won't have a cold-start delegation risk, however then as a developer consuming a remote agent, you will permanently override any agent-card description because L299 checking for a blank description will evaluate False, thereby ignoring the agent-card's description

**Expected behavior**
As with the MCP tool discovery, the remote agent-card should be looked up before communication/task delegation to a remote agent.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。