microsoft / promptflow

Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
https://microsoft.github.io/promptflow/
MIT License
8.32k stars 712 forks source link

[Executor] Refine executor logic to support async generator in flow test #3083

Closed thy09 closed 2 weeks ago

thy09 commented 2 weeks ago

Description

Refine exec_line logic to support async generator in flow test.

This pull request primarily focuses on improving the handling of generators and asynchronous generators in the promptflow package. The changes ensure that the code can handle both synchronous and asynchronous generators, improve the handling of generator outputs, and refactor the way nodes are executed in the flow.

Here are the key changes:

Improved handling of generators and asynchronous generators:

Refactoring of node execution:

All Promptflow Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines

github-actions[bot] commented 2 weeks ago

promptflow SDK CLI Azure E2E Test Result heta/allow-async-generator-flow-test

  4 files    4 suites   4m 8s :stopwatch: 238 tests 203 :white_check_mark:  35 :zzz: 0 :x: 952 runs  812 :white_check_mark: 140 :zzz: 0 :x:

Results for commit f54a67fd.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 2 weeks ago

promptflow-core test result

0 tests   0 :white_check_mark:  0s :stopwatch: 0 suites  0 :zzz: 0 files    0 :x:

Results for commit f54a67fd.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 2 weeks ago

SDK CLI Global Config Test Result heta/allow-async-generator-flow-test

6 tests   6 :white_check_mark:  1m 21s :stopwatch: 1 suites  0 :zzz: 1 files    0 :x:

Results for commit f54a67fd.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 2 weeks ago

Executor Unit Test Result heta/allow-async-generator-flow-test

792 tests   792 :white_check_mark:  3m 42s :stopwatch:   1 suites    0 :zzz:   1 files      0 :x:

Results for commit f54a67fd.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 2 weeks ago

Executor E2E Test Result heta/allow-async-generator-flow-test

242 tests   237 :white_check_mark:  5m 10s :stopwatch:   1 suites    5 :zzz:   1 files      0 :x:

Results for commit f54a67fd.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 2 weeks ago

SDK CLI Test Result heta/allow-async-generator-flow-test

    4 files      4 suites   58m 41s :stopwatch:   668 tests   655 :white_check_mark: 13 :zzz: 0 :x: 2 672 runs  2 620 :white_check_mark: 52 :zzz: 0 :x:

Results for commit f54a67fd.

:recycle: This comment has been updated with latest results.