promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

[Feature Request] Support kwargs

Open Anbang-Hu opened this issue 3 years ago • 2 comments

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: image

After clicking Run All, the parameters we added in flow.dag.yaml are wiped out: image

Describe the solution you'd like Allow users to input parameters for kwargs.

Describe alternatives you've considered NA

Additional context NA

Anbang-Hu avatar Oct 11 '23 06:10 Anbang-Hu

Workaround: If we trigger execution by CLI or button in yaml text page, inputs will not be removed. image

huaiyan avatar Oct 24 '23 06:10 huaiyan

This feature is available if use promptflow version 1.0.0 and extension version 1.4.0

huaiyan avatar Nov 14 '23 07:11 huaiyan