MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / requestCorrectionSystemPrompt

Function requestCorrectionSystemPrompt

lib/prompts/requestCorrection.ts:5–30  ·  view source on GitHub ↗
(
  orgInfo: {
    name: string;
    description: string;
  },
  userDescription: string | undefined,
)

Source from the content-addressed store, hash-verified

3import { getActionDescriptions, getIntroText } from "./chatBot";
4
5export function requestCorrectionSystemPrompt(
6 orgInfo: {
7 name: string;
8 description: string;
9 },
10 userDescription: string | undefined,
11): ChatGPTMessage {
12 return {
13 role: "system",
14 content: `${getIntroText(orgInfo)} Your purpose is to assist users ${
15 orgInfo.name ? `in ${orgInfo.name} ` : ""
16 }via function calls
17${
18 userDescription
19 ? `\nThe following is a description of the user: ${userDescription}\n`
20 : ""
21}
22The main chatbot AI has made a mistake in a function call. Your role is to output a value for the missing parameter to correct this mistake
23
24If you are unsure of what to output, output "ask user". Avoid asking the user unless you absolutely have to
25
26Output only the response or "ask user"
27
28Today's date is ${new Date().toISOString().split("T")[0]}`,
29 };
30}
31
32export default function requestCorrectionPrompt(
33 missingParam: string,

Callers 2

BertieFunction · 0.90
AngelaFunction · 0.90

Calls 1

getIntroTextFunction · 0.90

Tested by

no test coverage detected