How to interact with the plan generated by the function_calling_stepwise_planner before proceeding? #6442
-
In one of the Microsoft Build presentations, there was a demo from Fujitsu on how they were able to edit the plan generated by the planner. In trying to do this on my own, I see a couple ways this looks promising but can't figure either out. In function_calling_stepwise_planner.py I was thinking the behavior could be mimicked and the initial_plan could be edited after being generated here. However, this would require changing library code which is less than ideal. The second idea would be to use the new filters but I'm unsure how that could be paired with the planner. Any ideas or samples on this topic? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
@ColtonBehannon Did you try using auto function calling feature? With function calling you can send a request and let the AI model decide how to achieve provided goal. Semantic Kernel will invoke all necessary functions for you. In this case, with filters you should be able to change the behavior in the middle of function calling process. Example of function calling in Python is here: Let me know if this functionality could handle your scenario. Thanks! |
Beta Was this translation helpful? Give feedback.
@ColtonBehannon Did you try using auto function calling feature? With function calling you can send a request and let the AI model decide how to achieve provided goal. Semantic Kernel will invoke all necessary functions for you. In this case, with filters you should be able to change the behavior in the middle of function calling process.
Example of function calling in Python is here:
https://github.com/microsoft/semantic-kernel/blob/main/python/samples/concepts/auto_function_calling/chat_gpt_api_function_calling.py
Let me know if this functionality could handle your scenario. Thanks!