eino
eino copied to clipboard
staeam 不能使用mcp tool
我使用Generate就可以正常使用mcp
但是使用Stream就报错
failed to call mcp tool: transport error: failed to marshal request: json: error calling MarshalJSON for type json.RawMessage: unexpected end of JSON input
node path: [tools] 如截图代码agent都是一个对象
stream 调用的话,应该是会在 tool 之前把 message stream concat 成一个 message,理论上没有啥区别。 可以用 callback 直接拿到模型的输出,看下导致 tool 报错的 message 和 invoke 有啥区别。 也可以换个模型试试看还有没有问题