a2aproject / a2aproject/a2a-samples
Bug in pure mcp example (missing tool name)
- 主要语言
- Jupyter Notebook
- 星标
- 1.8k
- 派生
- 751
- PR 合并指标
- 30 天内没有已合并 PR
描述
### What happened?
https://github.com/a2aproject/a2a-samples/blob/f140c6d5bc90297f448fdf73ab4b32c16f7cf60c/samples/python/agents/a2a-mcp-without-framework/src/no_llm_framework/server/agent.py#L153
but in jinja
https://github.com/a2aproject/a2a-samples/blob/f140c6d5bc90297f448fdf73ab4b32c16f7cf60c/samples/python/agents/a2a-mcp-without-framework/src/no_llm_framework/server/called_tools_history.jinja#L2
In jinja, should use "tool.tool" instead to avoid missing tool name in history? (or agent.py should use "name" as key?)
### Relevant log output
```shell
After writting the rendered template, currently the prompt looks like the following
...
Previous tools have been called.
- Tool:
- Arguments: {...
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
贡献指南
评估
这个 Issue 还没有评估数据。