[PR #166] [MERGED] feat[0.4.0]: add LLMStructuredOutput and LLMStructuredOutputInvocation for s… #196

Closed
opened 2026-02-15 21:16:11 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/166
Author: @Yeuoly
Created: 6/27/2025
Status: Merged
Merged: 6/27/2025
Merged by: @Yeuoly

Base: mainHead: feat/support-structured-llm-output


📝 Commits (2)

  • 08d2435 feat: add LLMStructuredOutput and LLMStructuredOutputInvocation for structured output handling
  • 7eecc03 docs: update README.md to include support for LLM structured output in manifest versioning

📊 Changes

5 files changed (+155 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)
📝 python/dify_plugin/core/entities/invocation.py (+1 -0)
📝 python/dify_plugin/core/runtime.py (+2 -0)
📝 python/dify_plugin/entities/model/llm.py (+36 -0)
python/dify_plugin/invocations/model/llm_structured_output.py (+115 -0)

📄 Description

…tructured output handling

image
  • Introduced LLMStructuredOutput model class for structured output representation.
  • Added LLMStructuredOutputInvocation class to handle invocation with structured output.
  • Updated ModelInvocations to include LLMStructuredOutputInvocation.
  • Modified InvokeType enum to support LLMStructuredOutput type.

Pull Request Checklist

Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:

Compatibility Check

  • I have checked whether this change affects the backward compatibility of the plugin declared in README.md
  • I have checked whether this change affects the forward compatibility of the plugin declared in README.md
  • If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the README.md
  • I have described the compatibility impact and the corresponding version number in the PR description
  • I have checked whether the plugin version is updated in the README.md

Available Checks

  • Code has passed local tests
  • Relevant documentation has been updated (if necessary)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/166 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 6/27/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/support-structured-llm-output` --- ### 📝 Commits (2) - [`08d2435`](https://github.com/langgenius/dify-plugin-sdks/commit/08d24352100aab383b36d5c598fa2f6afa24d312) feat: add LLMStructuredOutput and LLMStructuredOutputInvocation for structured output handling - [`7eecc03`](https://github.com/langgenius/dify-plugin-sdks/commit/7eecc0349b67f7c238f20bdd8671216dabffadb8) docs: update README.md to include support for LLM structured output in manifest versioning ### 📊 Changes **5 files changed** (+155 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `python/dify_plugin/core/entities/invocation.py` (+1 -0) 📝 `python/dify_plugin/core/runtime.py` (+2 -0) 📝 `python/dify_plugin/entities/model/llm.py` (+36 -0) ➕ `python/dify_plugin/invocations/model/llm_structured_output.py` (+115 -0) </details> ### 📄 Description …tructured output handling <img width="1221" alt="image" src="https://github.com/user-attachments/assets/79e741af-33f6-4118-a17d-6f7dfd1002cf" /> - Introduced LLMStructuredOutput model class for structured output representation. - Added LLMStructuredOutputInvocation class to handle invocation with structured output. - Updated ModelInvocations to include LLMStructuredOutputInvocation. - Modified InvokeType enum to support LLMStructuredOutput type. # Pull Request Checklist Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks: ## Compatibility Check - [ ] I have checked whether this change affects the **backward compatibility** of the plugin declared in `README.md` - [ ] I have checked whether this change affects the **forward compatibility** of the plugin declared in `README.md` - [ ] If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the `README.md` - [ ] I have described the compatibility impact and the corresponding version number in the PR description - [ ] I have checked whether the plugin version is updated in the `README.md` ## Available Checks - [ ] Code has passed local tests - [ ] Relevant documentation has been updated (if necessary) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:11 -05:00
yindo closed this issue 2026-02-15 21:16:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#196