Files
semantic-kernel/python/tests
c110327249 Python: Fix - Action Planner breaking when parameters are not explicitly given in the ask (#5590)
Solution to the issue: Python: Action Planner breaking when parameters
are not explicitly given in the ask
https://github.com/microsoft/semantic-kernel/issues/5583

### Motivation and Context
The action planner breaks when the user does not provide specific
parameters in the ask/goal. Users might have generic questions like
"what is the date today?". Fix for the issue
https://github.com/microsoft/semantic-kernel/issues/5583

### Description

Just adding an IF condition before iterating through the generated_plan
variable to check if parameters are present or not does the job. Added
unit test for a case like the example give above.

### Contribution Checklist

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: arfsyed <[email protected]>
Co-authored-by: Evan Mattson <[email protected]>
2024-03-25 18:23:02 +00:00
..
2023-04-13 16:12:36 -07:00