UNPKG

dtamind-components

Version:

Apps integration for Dtamind. Contain Nodes and Credentials.

77 lines (71 loc) 5.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CONDITION_AGENT_SYSTEM_PROMPT = exports.DEFAULT_HUMAN_INPUT_DESCRIPTION_HTML = exports.DEFAULT_HUMAN_INPUT_DESCRIPTION = exports.DEFAULT_SUMMARIZER_TEMPLATE = void 0; exports.DEFAULT_SUMMARIZER_TEMPLATE = `Progressively summarize the conversation provided and return a new summary. EXAMPLE: Human: Why do you think artificial intelligence is a force for good? AI: Because artificial intelligence will help humans reach their full potential. New summary: The human asks what the AI thinks of artificial intelligence. The AI thinks artificial intelligence is a force for good because it will help humans reach their full potential. END OF EXAMPLE Conversation: {conversation} New summary:`; exports.DEFAULT_HUMAN_INPUT_DESCRIPTION = `Summarize the conversation between the user and the assistant, reiterate the last message from the assistant, and ask if user would like to proceed or if they have any feedback. - Begin by capturing the key points of the conversation, ensuring that you reflect the main ideas and themes discussed. - Then, clearly reproduce the last message sent by the assistant to maintain continuity. Make sure the whole message is reproduced. - Finally, ask the user if they would like to proceed, or provide any feedback on the last assistant message ## Output Format The output should be structured in three parts in text: - A summary of the conversation (1-3 sentences). - The last assistant message (exactly as it appeared). - Ask the user if they would like to proceed, or provide any feedback on last assistant message. No other explanation and elaboration is needed. `; exports.DEFAULT_HUMAN_INPUT_DESCRIPTION_HTML = `<p>Summarize the conversation between the user and the assistant, reiterate the last message from the assistant, and ask if user would like to proceed or if they have any feedback. </p> <ul> <li>Begin by capturing the key points of the conversation, ensuring that you reflect the main ideas and themes discussed.</li> <li>Then, clearly reproduce the last message sent by the assistant to maintain continuity. Make sure the whole message is reproduced.</li> <li>Finally, ask the user if they would like to proceed, or provide any feedback on the last assistant message</li> </ul> <h2 id="output-format-the-output-should-be-structured-in-three-parts-">Output Format The output should be structured in three parts in text:</h2> <ul> <li>A summary of the conversation (1-3 sentences).</li> <li>The last assistant message (exactly as it appeared).</li> <li>Ask the user if they would like to proceed, or provide any feedback on last assistant message. No other explanation and elaboration is needed.</li> </ul> `; exports.CONDITION_AGENT_SYSTEM_PROMPT = `<p>You are part of a multi-agent system designed to make agent coordination and execution easy. Your task is to analyze the given input and select one matching scenario from a provided set of scenarios.</p> <ul> <li><strong>Input</strong>: A string representing the user's query, message or data.</li> <li><strong>Scenarios</strong>: A list of predefined scenarios that relate to the input.</li> <li><strong>Instruction</strong>: Determine which of the provided scenarios is the best fit for the input.</li> </ul> <h2>Steps</h2> <ol> <li><strong>Read the input string</strong> and the list of scenarios.</li> <li><strong>Analyze the content of the input</strong> to identify its main topic or intention.</li> <li><strong>Compare the input with each scenario</strong>: Evaluate how well the input's topic or intention aligns with each of the provided scenarios and select the one that is the best fit.</li> <li><strong>Output the result</strong>: Return the selected scenario in the specified JSON format.</li> </ol> <h2>Output Format</h2> <p>Output should be a JSON object that names the selected scenario, like this: <code>{"output": "<selected_scenario_name>"}</code>. No explanation is needed.</p> <h2>Examples</h2> <ol> <li> <p><strong>Input</strong>: <code>{"input": "Hello", "scenarios": ["user is asking about AI", "user is not asking about AI"], "instruction": "Your task is to check if the user is asking about AI."}</code></p> <p><strong>Output</strong>: <code>{"output": "user is not asking about AI"}</code></p> </li> <li> <p><strong>Input</strong>: <code>{"input": "What is AIGC?", "scenarios": ["user is asking about AI", "user is asking about the weather"], "instruction": "Your task is to check and see if the user is asking a topic about AI."}</code></p> <p><strong>Output</strong>: <code>{"output": "user is asking about AI"}</code></p> </li> <li> <p><strong>Input</strong>: <code>{"input": "Can you explain deep learning?", "scenarios": ["user is interested in AI topics", "user wants to order food"], "instruction": "Determine if the user is interested in learning about AI."}</code></p> <p><strong>Output</strong>: <code>{"output": "user is interested in AI topics"}</code></p> </li> </ol> <h2>Note</h2> <ul> <li>Ensure that the input scenarios align well with potential user queries for accurate matching.</li> <li>DO NOT include anything other than the JSON in your response.</li> </ul>`; //# sourceMappingURL=prompt.js.map