":{"type":"400","message":"Function call is missing a thought_signature in funct...
🚨 错误信息
500 {"error":{"type":"400","message":"Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call `default_api:TodoWrite` , position 3. Please refer
to https://***/***/***/*** for more details. (request id: 20251129182914449538141IT8QAmqV)"},"type":"error"}
🤖 AI解决方案
错误翻译
原文:Function call is missing a thought_signature in functionCall parts.
译文:函数调用在functionCall部分缺少thought_signature。
原因分析
这是一个API调用格式错误,具体原因是函数调用请求中缺少必需的thought_signature参数。系统需要这个签名来验证函数调用的完整性和正确性,缺少它会导致工具无法正常工作。
解决方案
在您的函数调用中添加thought_signature参数:
{
"functionCall": {
"name": "default_api:TodoWrite",
"arguments": {
// 您的函数参数
},
"thought_signature": "您的思维签名内容" // 添加此行
}
}
具体的thought_signature格式请参考官方文档中的要求,通常是模型生成的推理过程或验证信息。
️ 预防措施
- 参数完整性检查:在发起函数调用前,使用参数验证工具检查所有必需字段是否齐全
- 开发规范:建立函数调用模板,确保每次调用都包含
thought_signature等必需参数 - 使用API调试工具:通过Postman或类似的工具预先测试API调用格式
如需更多帮助,请参考错误信息中提供的官方文档链接。