[BUG] Activate feature, cannot treat string type 'yes', 'no' correctly
Describe the bug
If you want to use output from a node with the string of "yes" or "no" it won't work. Guessing Yes/No is treated like True/False.
It could be limitation of YAML file, but shall we honor the field type, and make sure string value is quoted with '' or ""?
This seems to be an extension behavior that write yaml as is: yes, while what we expect is is: 'yes', here is the example:
activate:
when: ${inputs.input_text}
is: yes
We found that the root cause is that the extension and promptflow packages use different versions of yaml. In yaml 1.2, terms like 'yes', 'no', 'on', 'off' are no longer treated as boolean values. We have already submitted a PR (https://github.com/microsoft/promptflow/pull/1668) to address this issue, and plan to release the fix in the next version (1.4.0).
The latest version (1.4.0) of promptflow has been released, utilizing version 1.2 of yaml, where terms like 'yes'/'no' are no longer interpreted as booleans.
After testing and verification, the issue has been resolved. You can download the latest version to try it out.
I will close this issue. Thank you~