Skip to content

Python: Trouble understanding how to control the prompt that is executing the plan created by the planner in function_calling_stepwise_planner #6104

Answered by moonbox3
ColtonBehannon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ColtonBehannon, the UserInteraction-SendFinalAnswer plugin is a more concrete way for us to handle the final answer, if/when it is created by the LLM. The answer parameter to the function is an indication to the LLM and is not intended to be used. You can see here that we're doing a check if the FunctionResult contains a plugin with the name UserInteraction-SendFinalAnswer, otherwise other text returned from the LLM could be part of the planned process and not something we want to actually stop on.

https://github.com/microsoft/semantic-kernel/blob/8f15f3a81c3bbbfa2f3fe65f4a9034e76425e693/python/semantic_kernel/planners/function_calling_stepwise_planner/function_calling_stepwise_planne…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ColtonBehannon
Comment options

Answer selected by ColtonBehannon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants