You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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-beta.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Deploy fresh 1.0.0-beta.1 instance
Install OpenAI plugin and configure API key
Install Agent Strategy plugin
Create new Workflow app
Add and connect Agent node and End node
Configure Agent node with minimum values
Click Publish -> Publish
✔️ Expected Behavior
The App is published.
❌ Actual Behavior
No response with no error. The App is not published.
Internally, there is an error: TypeError: Cannot destructure property 'strategy' of 'a' as it is undefined.
The text was updated successfully, but these errors were encountered:
The issue you're encountering seems to be related to the configuration of the 'Agent' node in your workflow. The error message TypeError: Cannot destructure property 'strategy' of 'a' as it is undefined suggests that the 'strategy' property is not being correctly set or accessed in the code.
Here are a few steps you can take to troubleshoot and potentially resolve this issue:
Check Agent Node Configuration: Ensure that the 'Agent' node is correctly configured with all required parameters. The 'strategy' property should be set to one of the expected values: "function_call", "cot", or "react" [1].
Verify Plugin Installation: Make sure that the Agent Strategy plugin is properly installed and configured. This includes verifying that the 'FunctionCalling' strategy is available and correctly set up in your environment.
Review Code for Destructuring: The error indicates a problem with destructuring in the JavaScript code. Check the part of the code where the 'strategy' property is being accessed. Ensure that the object from which 'strategy' is being destructured is correctly initialized and contains the expected properties.
Debugging: Add logging or debugging statements to the code to trace where the 'strategy' property is being set and accessed. This can help identify if and where the property is becoming undefined.
Consult Documentation: Review the Dify documentation for any additional configuration steps or requirements for using the 'Agent' node and 'FunctionCalling' strategy [2].
By ensuring that the 'Agent' node is correctly configured and that the code handling the 'strategy' property is robust, you should be able to resolve the issue and successfully publish your workflow.
Self Checks
Dify version
1.0.0-beta.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
The App is published.
❌ Actual Behavior
No response with no error. The App is not published.
Internally, there is an error:
TypeError: Cannot destructure property 'strategy' of 'a' as it is undefined.
The text was updated successfully, but these errors were encountered: