LLM node output formatting verification and automatic retry mechanism #16290

Closed
opened 2026-02-21 19:25:29 -05:00 by yindo · 1 comment
Owner

Originally created by @Jimmy-L99 on GitHub (Aug 20, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Is it possible to add format validation and automatic retry functions within the LLM node? In case the output does not follow the specified JSON format, the node should be able to automatically re-run. This way, the subsequent data processing nodes will have advantages, as it can prevent errors from occurring and also enhance the stability of the entire workflow.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Jimmy-L99 on GitHub (Aug 20, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Is it possible to add format validation and automatic retry functions within the LLM node? In case the output does not follow the specified JSON format, the node should be able to automatically re-run. This way, the subsequent data processing nodes will have advantages, as it can prevent errors from occurring and also enhance the stability of the entire workflow. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 19:25:29 -05:00
yindo closed this issue 2026-02-21 19:25:29 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 20, 2025):

Hi, @Jimmy-L99. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested adding format validation and an automatic retry feature to the LLM node.
  • The goal is to ensure outputs conform to the specified JSON format to prevent downstream errors.
  • This feature aims to enhance workflow stability.
  • There has been no activity or comments on this issue since it was opened.
  • No contributions toward development have been offered yet.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of Dify by commenting here.
  • If I do not hear back within 15 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Sep 20, 2025): Hi, @Jimmy-L99. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested adding format validation and an automatic retry feature to the LLM node. - The goal is to ensure outputs conform to the specified JSON format to prevent downstream errors. - This feature aims to enhance workflow stability. - There has been no activity or comments on this issue since it was opened. - No contributions toward development have been offered yet. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of Dify by commenting here. - If I do not hear back within 15 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#16290