UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

36 lines 1.98 kB
const generateNodeOutputTextPromptString = 'Create @@noOfSentencesToGenerate unique sentences based on the description: "@@description" in @@language and return them as a pipe-separated string.'; export const generateNodeOutputTextPrompt = [ { role: "system", content: generateNodeOutputTextPromptString, }, { role: "user", content: "Let's start." } ]; const generateNodeOutputCreateAdaptiveCardPromptString = 'Create an adaptiveCard based on the description: "@@description" in @@language. Return nothing but the Adaptive Card JSON object. Your Adaptive Card should accurately reflect the requirements described in the description, while still adhering to the Adaptive Card JSON specification.'; export const generateNodeOutputCreateAdaptiveCardPrompt = [ { role: "system", content: generateNodeOutputCreateAdaptiveCardPromptString, }, { role: "user", content: "Let's start." } ]; const generateNodeOutputModifyAdaptiveCardPromptString = 'Please modify the @@lastOutput Adaptive Card JSON based on the provided instruction "@@description". Return nothing but the Adaptive Card JSON object. The language of the Adaptive Card text should be @@language. Your modified Adaptive Card should accurately reflect the changes described in the description, while still adhering to the Adaptive Card JSON specification.'; export const generateNodeOutputModifyAdaptiveCardPrompt = [ { role: "system", content: generateNodeOutputModifyAdaptiveCardPromptString, }, // The user role is a workaround for Anthropic models which require a user message as per our implementation in llm-providers. // However, the user role confuses gpt-3.5-turbo, which needs a more descriptive user message to generate the adaptive card. { role: "user", content: "Let's start generating the adaptive card." } ]; //# sourceMappingURL=generateNodeOutput.js.map