[Feature Request] Support kwargs
Is your feature request related to a problem? Please describe.
Our python tool function needs to accept **kwargs as input. E.g.
from promptflow import tool
@tool
def dummy(input_str: str, **kwargs):
return input_str
However, visual editor doesn't support specifying kwargs, so we have to define it in flow.dag.yaml:
After clicking Run All, the parameters we added in flow.dag.yaml are wiped out:
Describe the solution you'd like Allow users to input parameters for kwargs.
Describe alternatives you've considered NA
Additional context NA
Workaround:
If we trigger execution by CLI or button in yaml text page, inputs will not be removed.
This feature is available if use promptflow version 1.0.0 and extension version 1.4.0