-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support kwargs #714
Labels
enhancement
New feature or request
Comments
This was referenced Nov 6, 2023
huaiyan
added a commit
that referenced
this issue
Nov 8, 2023
# Description #714 asked support for kwargs. Add `enable_kwargs` tag in tools.json for customer python tool. Then clients could add corresponding support for kwargs by yaml authoring. We don't need to modify execution logic to support kwargs. Confirmed with @lalala123123 `_parse_tool_from_function` in `_sdk.operations._tool_operations.py` will not be used to generate meta. # All Promptflow Contribution checklist: - [X] **The pull request does not introduce [breaking changes].** - [X] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [X] **I have read the [contribution guidelines](../CONTRIBUTING.md).** - [ ] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [X] Title of the pull request is clear and informative. - [X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [X] Pull request includes test coverage for the included changes. --------- Co-authored-by: Robben Wang <robbenwang@microsoft.com>
This feature is available if use promptflow version 1.0.0 and extension version 1.4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Our python tool function needs to accept
**kwargs
as input. E.g.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
The text was updated successfully, but these errors were encountered: