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

feat: enable validation in pf.flow._save #2622

Merged
merged 9 commits into from
Apr 8, 2024

Conversation

elliotzh
Copy link
Contributor

@elliotzh elliotzh commented Apr 3, 2024

Description

  1. FlexFlow no longer inherit Flow
  2. support Connection params for class init (save & meta generation)
  3. enable type check for ports in pf.flow._save
  4. add pf.flows._infer_signature

Note that we haven't checked whether inputs/outputs are of type dict for now as they're not recognized by current meta generation logic. Will do this in a separate PR as it may involve changes on low-level utils.

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.

@elliotzh elliotzh requested a review from a team as a code owner April 3, 2024 02:32
@github-actions github-actions bot added the sdk prompt flow SDK label Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

promptflow SDK CLI Azure E2E Test Result zhangxingzhi/pf-save-public-api

  4 files    4 suites   3m 59s ⏱️
202 tests 182 ✅ 20 💤 0 ❌
808 runs  728 ✅ 80 💤 0 ❌

Results for commit c5a7cac.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 3, 2024

SDK CLI Test Result zhangxingzhi/pf-save-public-api

   12 files     12 suites   48m 53s ⏱️
  558 tests   539 ✅ 19 💤 0 ❌
2 232 runs  2 156 ✅ 76 💤 0 ❌

Results for commit c5a7cac.

♻️ This comment has been updated with latest results.

@elliotzh elliotzh requested review from a team as code owners April 3, 2024 06:39
@github-actions github-actions bot added promptflow executor The changes related to the execution of the flow labels Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

SDK CLI Global Config Test Result zhangxingzhi/pf-save-public-api

3 tests   3 ✅  52s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit c5a7cac.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 3, 2024

promptflow-core test result

 12 files   12 suites   2m 57s ⏱️
 11 tests  11 ✅ 0 💤 0 ❌
132 runs  132 ✅ 0 💤 0 ❌

Results for commit c5a7cac.

♻️ This comment has been updated with latest results.

@elliotzh elliotzh changed the title refactor: FlexFlow no longer inherit Flow feat: enable validation in pf.flow._save Apr 3, 2024
D-W-
D-W- previously approved these changes Apr 3, 2024
@elliotzh elliotzh force-pushed the zhangxingzhi/pf-save-public-api branch from 0dcfde2 to 08d578c Compare April 7, 2024 08:24
thy09
thy09 previously approved these changes Apr 7, 2024
@elliotzh elliotzh force-pushed the zhangxingzhi/pf-save-public-api branch from 89f3946 to 9742c6e Compare April 8, 2024 04:04
@elliotzh elliotzh force-pushed the zhangxingzhi/pf-save-public-api branch from 9742c6e to c5a7cac Compare April 8, 2024 04:07
@elliotzh elliotzh merged commit 0d42f88 into main Apr 8, 2024
48 checks passed
@elliotzh elliotzh deleted the zhangxingzhi/pf-save-public-api branch April 8, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
executor The changes related to the execution of the flow fundamental promptflow promptflow-core promptflow-devkit sdk prompt flow SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants