Error with multi-agent #10276

Closed
opened 2026-02-21 18:44:54 -05:00 by yindo · 0 comments
Owner

Originally created by @jiandanfeng on GitHub (Mar 10, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When using multi-agent, if the agent's model is configured as qwen-max or deepseek-chat, an error will be reported. Only if it is set to kimi is correct. The configuration is as shown in the figure:

Image
The error is as follows:

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [deepseek] Error: PluginInvokeError: {\"args\":{\"description\":\"[models] Error: API request failed with status code 400: {\\\"error\\\":{\\\"message\\\":\\\"Invalid schema for function 'contractManage_test_wf': \\\\\\\"select\\\\\\\" is not valid under any of the schemas listed in the 'anyOf' keyword\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":null,\\\"code\\\":\\\"invalid_request_error\\\"}}\"},\"error_type\":\"InvokeError\",\"message\":\"[models] Error: API request failed with status code 400: {\\\"error\\\":{\\\"message\\\":\\\"Invalid schema for function 'contractManage_test_wf': \\\\\\\"select\\\\\\\" is not valid under any of the schemas listed in the 'anyOf' keyword\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":null,\\\"code\\\":\\\"invalid_request_error\\\"}}\"}"}

or

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [tongyi] Error: PluginInvokeError: {\"args\":{},\"error_type\":\"KeyError\",\"message\":\"'name'\"}"}

✔️ Expected Behavior

no error

Actual Behavior

Wrong report.

Originally created by @jiandanfeng on GitHub (Mar 10, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When using multi-agent, if the agent's model is configured as qwen-max or deepseek-chat, an error will be reported. Only if it is set to kimi is correct. The configuration is as shown in the figure: ![Image](https://github.com/user-attachments/assets/c9ac2516-ca51-4d33-be7a-df27070c84fa) The error is as follows: ``` Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [deepseek] Error: PluginInvokeError: {\"args\":{\"description\":\"[models] Error: API request failed with status code 400: {\\\"error\\\":{\\\"message\\\":\\\"Invalid schema for function 'contractManage_test_wf': \\\\\\\"select\\\\\\\" is not valid under any of the schemas listed in the 'anyOf' keyword\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":null,\\\"code\\\":\\\"invalid_request_error\\\"}}\"},\"error_type\":\"InvokeError\",\"message\":\"[models] Error: API request failed with status code 400: {\\\"error\\\":{\\\"message\\\":\\\"Invalid schema for function 'contractManage_test_wf': \\\\\\\"select\\\\\\\" is not valid under any of the schemas listed in the 'anyOf' keyword\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":null,\\\"code\\\":\\\"invalid_request_error\\\"}}\"}"} ``` or ``` Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [tongyi] Error: PluginInvokeError: {\"args\":{},\"error_type\":\"KeyError\",\"message\":\"'name'\"}"} ``` ### ✔️ Expected Behavior no error ### ❌ Actual Behavior Wrong report.
yindo added the 🐞 bug label 2026-02-21 18:44:54 -05:00
yindo closed this issue 2026-02-21 18:44:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10276