Skip to content

Support function pre-execute system prompt#714

Closed
adlymousa wants to merge 1 commit intopipecat-ai:mainfrom
adlymousa:function-pre-execute-prompt
Closed

Support function pre-execute system prompt#714
adlymousa wants to merge 1 commit intopipecat-ai:mainfrom
adlymousa:function-pre-execute-prompt

Conversation

@adlymousa
Copy link
Copy Markdown

@adlymousa adlymousa commented Nov 14, 2024

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.

@aconchillo
Copy link
Copy Markdown
Contributor

Closing. This is something you can do at the beginning of each function call or you can generaically by adding an event handler for on_function_calls_started which is triggered before any function call executes.

@aconchillo aconchillo closed this Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants