[BUG] Go Ollama adapter does not send tool_name on tool result messages
维护者通常 1 天内回复
评估
调研方向
阅读 go/adk/pkg/models/ollama_adk.go,尤其是 convertGenaiContentsToOllamaMessages,并将其函数响应处理方式与 Python 参考文件中的 _convert_content_to_ollama_messages 进行比较。为 get_weather 和 get_time 的响应添加一个测试,检查每条工具消息是否携带其函数名称;当两个 ToolName 值都与对应名称一致时即为完成。
由索引模型根据 Issue 内容生成。
描述
Bug Description
The Go Ollama adapter does not send tool_name on tool result messages. In convertGenaiContentsToOllamaMessages, each function response becomes a message with only role: tool and content. The Python Ollama adapter sets tool_name from the function response name. Ollama uses this field when it builds the prompt. For example, the Gemma 4 renderer shows a result with no tool_name as coming from an "unknown" tool.
Steps To Reproduce
- Build a history with a model turn that calls
get_weatherandget_time, then a user turn with both function responses. - Pass it to
convertGenaiContentsToOllamaMessages. - Both
toolmessages have an emptyToolName.
Expected Behavior
Each tool message carries the name of the tool that produced it, the same as the Python runtime.
Additional Context
File: go/adk/pkg/models/ollama_adk.go. Python reference: _convert_content_to_ollama_messages in python/packages/kagent-adk/src/kagent/adk/models/_ollama.py. I have a small fix with a test ready.
- 主要语言
- Go
- 星标
- 4.1k
- 派生
- 859
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 174
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kagent-dev/kagent 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
kagent-dev/kagent#3428 · 1 条评论 ·
维护者通常 1 天内回复
-
[BUG]可能已有人在做 @helloxjade 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
kagent-dev/kagent#3385 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
kagent-dev/kagent#3247 ·
维护者通常 1 天内回复
-
[BUG] Ollama ModelConfig options: integer coercion crashes on decimal strings, and boolean options only accept exact "true"可能已有人在做 @piyush182004 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
kagent-dev/kagent#3245 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
ui: useAgentInstances(true) turns an all_creators refusal into a page error可能重新可做 @suryakant-source 于 12 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
kagent-dev/kagent#3212 · 1 条评论 ·
维护者通常 1 天内回复
查看 kagent-dev/kagent 的全部 Issue
相似的 Issue
-
Docker Hub credentials are not used for images written as docker.io/owner/name可能已有人在做 @Dev-next-gen 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
authelia/authelia#13659 · 2 条评论 ·
维护者通常 1 天内回复
-
good first issue help wanted testing
难度 2/5 1-3 小时 新手友好度 78/100
sara-star-quant/Quantum-Go#139 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
YoanWai/agent-manager#948 ·
维护者通常 1 天内回复
-
area/gateway kind/bug
难度 2/5 1-3 小时 新手友好度 85/100
vllm-project/aibrix#3369 · 1 条评论 ·
维护者通常 1 天内回复