-
[SDK] Add flow run interface for eager flow (#1730)
发布于
2024-01-15 11:04:25 +00:00 This pull request includes a wide range of changes to various files in
the codebase. The most important changes include adding new test methods
to thetest_flow_testclass, modifying the_testmethod in
_flow_operations.pyto handle eager flows differently, and adding new
methods and attributes to theFlowandRunclasses.Main interface changes:
src/promptflow/tests/sdk_cli_test/e2etests/test_flow_test.py:
Added new test methods to thetest_pf_test_flow_in_notebooktest
class.
*
src/promptflow/promptflow/_sdk/operations/_flow_operations.py:
Modified the_testmethod to handle eager flows differently.
*
src/promptflow/promptflow/_sdk/entities/_flow.py:
Added a new parameterentryto theloadmethod.
*
src/promptflow/promptflow/_sdk/entities/_run.py:
Added support for specifying the entry function and eager mode in the
Runclass.Testing improvements:
src/promptflow/tests/sdk_cli_test/e2etests/test_flow_test.py:
Added new test methods to thetest_flow_testclass.
*
src/promptflow/tests/sdk_cli_test/e2etests/test_flow_run.py:
Added new test cases to test the execution of eager flows without YAML
files.Configuration improvements:
src/promptflow/promptflow/_sdk/entities/_flow.py:
Added a new propertylanguageto theFlowclass.Database schema changes:
src/promptflow/promptflow/_sdk/_orm/run_info.py:
Added two new columnsis_eager_modeandentryto theRunInfo
table.# DescriptionPlease add an informative description that covers that changes made by
the pull request and link all relevant issues.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.
下载附件