pipecat-ai / pipecat

Open Source framework for voice and multimodal conversational AI
BSD 2-Clause "Simplified" License
3.47k stars 341 forks source link

Support function pre-execute system prompt #714

Open adlymousa opened 2 weeks ago

adlymousa commented 2 weeks ago

This PR adds support for pre-execute prompts when registering functions for OpenAILLM. These prompts are sent to the LLM before executing a function call, allowing for additional context or instructions to be provided to the user before the function executes.

For instance, we can instruct the LLM to inform the user that "we're getting the information, please hold on" before executing RAG.