Failed to transform agent message #12878

Closed
opened 2026-02-21 19:09:30 -05:00 by yindo · 3 comments
Owner

Originally created by @Caco355 on GitHub (Apr 14, 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.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Create a chatflow with agent function calling and netbox mcp, failed running agent node

Image

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [models] Bad Request Error, Error code: 400 - {'error': {'message': "Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1889 instead.", 'type': 'invalid_request_error', 'param': 'tools[1].function.description', 'code': 'string_above_max_length'}}"}

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Caco355 on GitHub (Apr 14, 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.1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Create a chatflow with agent function calling and netbox mcp, failed running agent node ![Image](https://github.com/user-attachments/assets/22177fa0-28e2-46af-8adb-83fd14758ea0) Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [models] Bad Request Error, Error code: 400 - {'error': {'message': \"Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1889 instead.\", 'type': 'invalid_request_error', 'param': 'tools[1].function.description', 'code': 'string_above_max_length'}}"} ![Image](https://github.com/user-attachments/assets/1fbc91be-78ea-4462-9d04-a6eb84ce89d7) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:09:30 -05:00
yindo closed this issue 2026-02-21 19:09:30 -05:00
Author
Owner

@crazywoola commented on GitHub (Apr 14, 2025):

See the error logs

Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1889 instead.

Try to adjust the length of the tool's description

@crazywoola commented on GitHub (Apr 14, 2025): See the error logs ``` Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1889 instead. ``` Try to adjust the length of the tool's description
Author
Owner

@Caco355 commented on GitHub (Apr 14, 2025):

See the error logs

Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1889 instead.

Try to adjust the length of the tool's description

The description of my tool is set to default and no description has been entered.

Image

@Caco355 commented on GitHub (Apr 14, 2025): > See the error logs > > ``` > Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1889 instead. > ``` > > Try to adjust the length of the tool's description The description of my tool is set to default and no description has been entered. ![Image](https://github.com/user-attachments/assets/563b6a6e-402f-4590-aded-ab4436e1ac69)
Author
Owner

@crazywoola commented on GitHub (Apr 14, 2025):

I think you need to open an issue in this tool's repo instead.

@crazywoola commented on GitHub (Apr 14, 2025): I think you need to open an issue in this tool's repo instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12878