a2aproject / a2aproject/a2a-samples

The function call name is not the same in prompt and tools

未關閉 適合新手
#44 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
1.8k
分支
751
PR 合併指標
30 天內沒有已合併 PR

描述

in tools ,the function tool is named send_task

tools=[
self.list_remote_agents,
self.send_task,
],

but in prompt it is named as create_task

- For actionable tasks, you can use `create_task` to assign tasks to remote agents to perform.

https://github.com/google/A2A/blob/b52c2ebb381f2769159af90e35ac975313f59fd4/samples/python/hosts/multiagent/host_agent.py#L96

貢獻指南

開啟貢獻指南

研究方向

The issue points to line 96 in samples/python/hosts/multiagent/host_agent.py. Look at the `tools` list and the prompt text to find the mismatch between `send_task` and `create_task`. Update the prompt string to use `send_task` to match the actual function name, then verify the change by running any related tests or checking the script's behavior.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
documentation
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
75/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。