mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
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]>