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
Is your feature request related to a problem? Please describe.
We are using a conditional router to route to different pipeline branches based on a parameter we insert during runtime. We would like to also set a default branch in case the respective parameter (path) was not inserted at runtime.
Through testing we figured out this works if you run the component individually. So
It would be great to add a way to make parameters (or some of them optional). Perhaps following the PromptBuilder we could add a required_variables parameter or do the inverse (to not cause a breaking change) and make optional_variables list so that all parameters are required by default (current behavior) and then explicitly add some as optional.
The text was updated successfully, but these errors were encountered:
sjrl
changed the title
Make inputs to ConditionalRouter optional
Add variable to specify inputs as optional to ConditionalRouter
Nov 19, 2024
Is your feature request related to a problem? Please describe.
We are using a conditional router to route to different pipeline branches based on a parameter we insert during runtime. We would like to also set a default branch in case the respective parameter (path) was not inserted at runtime.
Through testing we figured out this works if you run the component individually. So
However, when inserting it into a Pipeline it no longer works
It would be great to add a way to make parameters (or some of them optional). Perhaps following the PromptBuilder we could add a
required_variables
parameter or do the inverse (to not cause a breaking change) and makeoptional_variables
list so that all parameters are required by default (current behavior) and then explicitly add some as optional.The text was updated successfully, but these errors were encountered: