semantic-kernel
semantic-kernel copied to clipboard
Improve Planner prompt to support invalid ASK
It appears that the Microsoft.SemanticKernel.CoreSkills.SemanticFunctionConstants.FunctionFlowFunctionDefinition prompt always attempts to generate a plan for a given goal, even if there are no appropriate skills available to fulfill it. This can result in some absurd plans being generated.
To address this, there are two potential options:
- Return an error message when there are no suitable skills available to fulfill the goal. This would help prevent the generation of ridiculous plans and provide feedback to the user that the goal cannot be accomplished with the current set of skills.
- Leave the plan verification task to the user.
Thx.
Thanks for the feedback -- you are right, this needs to be improved.
Closing with PR now in main
There is still additional work to be done. Opening this back up