Skip to content

Provide output data also in json property of workflow tool (#6924) - #7027

Merged
crazywoola merged 1 commit into
langgenius:mainfrom
akramer-zibra:feat-json-ouput-workflow-tool-6924
Aug 7, 2024
Merged

crazywoola merged 1 commit into
langgenius:mainfrom
akramer-zibra:feat-json-ouput-workflow-tool-6924

Conversation

@akramer-zibra

@akramer-zibra akramer-zibra commented Aug 6, 2024 •

Copy link
Copy Markdown
Contributor

Checklist:

  • Please open an issue before creating a PR or link to an existing issue
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Description

This patch will change the output behaviour of workflow tools, so the output data of a workflow block will also be provided via json property. This simplifies further usage of this data, because you do not need to transform the stringified output data from text property to access certain properties of this data in following tools. This issue is described in more detail in
Close #6924.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update, included: Dify Document
  • Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • Dependency upgrade

Testing Instructions

  • Create a simple workflow (A), which takes a text input and provides this as an output in the end
  • Create a second workflow (B), which takes a text input, passes this into workflow (A), receives the output of this embedded workflow and finally provides this data in the end
  • Expect: If you run the parent workflow (B), the json property in the end finally contains the output data from the emebedded workflow (A).

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🌊 feat:workflow Workflow related stuff. labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌊 feat:workflow Workflow related stuff. lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

json output property is empty when a workflow is used as tool in another workflow

2 participants