Skip to content

How to Set Prompt for Planning When Using ChatCompletion Kernel for Automatic Function Execution? #10253

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

You must be logged in to vote

@ntmkkc the best suggestion is to perform "vanilla function" calling in the following manner: https://github.com/microsoft/semantic-kernel/blob/main/python/samples/concepts/auto_function_calling/chat_completion_with_auto_function_calling.py.

As you pointed out, we recommend staying away from the existing planners (that will be deprecated in the future) as those take too much of a "one-way" approach to function calling. Using function calling in a chat based scenario saves tokens, reduces latency, and can be better for your application because if extra user input is required, the model will ask, and you/your user can provide it.

You can check out some other samples in that directory to see…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python Pull requests for the Python Semantic Kernel function_calling
2 participants