-
Notifications
You must be signed in to change notification settings - Fork 888
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
[Executor] Support applying default value and ensuring type for flex flow #2923
Conversation
promptflow SDK CLI Azure E2E Test Result dev/linatang/support_default_value 4 files 4 suites 4m 6s ⏱️ Results for commit e0ffe49. ♻️ This comment has been updated with latest results. |
SDK CLI Global Config Test Result dev/linatang/support_default_value6 tests 6 ✅ 1m 20s ⏱️ Results for commit e0ffe49. ♻️ This comment has been updated with latest results. |
Executor Unit Test Result dev/linatang/support_default_value792 tests 792 ✅ 3m 43s ⏱️ Results for commit e0ffe49. ♻️ This comment has been updated with latest results. |
Executor E2E Test Result dev/linatang/support_default_value242 tests 237 ✅ 5m 9s ⏱️ Results for commit e0ffe49. ♻️ This comment has been updated with latest results. |
d5cc9c0
to
319351e
Compare
SDK CLI Test Result dev/linatang/support_default_value 4 files 4 suites 59m 14s ⏱️ Results for commit e0ffe49. ♻️ This comment has been updated with latest results. |
319351e
to
dd5b83b
Compare
…om/microsoft/promptflow into dev/linatang/support_default_value
…flow (#2923) # Description In this PR, we support applying default value and ensuring type provided for flex flow. If the input is not provided then we will apply the default value defined in the yaml, also we will check whether the input type is consistent with the type defined in yaml. An example yaml file: ``` entry: my_flow:MyClass init: input_init: type: string default: input_init inputs: input_1: type: string input_2: type: string default: input_2 ``` # All Promptflow Contribution checklist: - [x] **The pull request does not introduce [breaking changes].** - [ ] **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: Lina Tang <[email protected]>
Description
In this PR, we support applying default value and ensuring type provided for flex flow. If the input is not provided then we will apply the default value defined in the yaml, also we will check whether the input type is consistent with the type defined in yaml. An example yaml file:
All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines