#12777·haystack

Agent 生成_kwargs["tools"] 会替换 agent.tools,而不是被视为客户端规范

作者: faymarie创建于 2026年9月16日更新于 2026年9月17日

Describe the bug

When an Agent is given extra OpenAI tool specs in generation_kwargs["tools"] (typical for an OpenAI-compatible /chat/completions proxy that forwards the client tools catalog), those specs replace the Agent's own tools on the chat-generator call. The model never sees agent.tools.

内容来源: deepset-ai/haystack