Skip to content
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

Merged
merged 24 commits into from
Apr 29, 2024

Conversation

lumoslnt
Copy link
Contributor

@lumoslnt lumoslnt commented Apr 22, 2024

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:

  • The pull request does not introduce [breaking changes].
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: suggested workflow.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • 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.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copy link

github-actions bot commented Apr 22, 2024

promptflow SDK CLI Azure E2E Test Result dev/linatang/support_default_value

  4 files    4 suites   4m 6s ⏱️
238 tests 203 ✅  35 💤 0 ❌
952 runs  812 ✅ 140 💤 0 ❌

Results for commit e0ffe49.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 22, 2024

SDK CLI Global Config Test Result dev/linatang/support_default_value

6 tests   6 ✅  1m 20s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit e0ffe49.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 22, 2024

Executor Unit Test Result dev/linatang/support_default_value

792 tests   792 ✅  3m 43s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit e0ffe49.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 22, 2024

Executor E2E Test Result dev/linatang/support_default_value

242 tests   237 ✅  5m 9s ⏱️
  1 suites    5 💤
  1 files      0 ❌

Results for commit e0ffe49.

♻️ This comment has been updated with latest results.

@lumoslnt lumoslnt force-pushed the dev/linatang/support_default_value branch from d5cc9c0 to 319351e Compare April 22, 2024 08:12
@lumoslnt lumoslnt requested a review from a team as a code owner April 22, 2024 08:12
Copy link

github-actions bot commented Apr 22, 2024

SDK CLI Test Result dev/linatang/support_default_value

    4 files      4 suites   59m 14s ⏱️
  664 tests   651 ✅ 13 💤 0 ❌
2 656 runs  2 604 ✅ 52 💤 0 ❌

Results for commit e0ffe49.

♻️ This comment has been updated with latest results.

@lumoslnt lumoslnt merged commit 43a3363 into main Apr 29, 2024
51 checks passed
@lumoslnt lumoslnt deleted the dev/linatang/support_default_value branch April 29, 2024 11:06
crazygao pushed a commit that referenced this pull request May 6, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants