export const 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:` export const 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. ` export const DEFAULT_HUMAN_INPUT_DESCRIPTION_HTML = `

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.

Output Format The output should be structured in three parts in text:

` export const CONDITION_AGENT_SYSTEM_PROMPT = `

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.

Steps

  1. Read the input string and the list of scenarios.
  2. Analyze the content of the input to identify its main topic or intention.
  3. Compare the input with each scenario: 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.
  4. Output the result: Return the selected scenario in the specified JSON format.

Output Format

Output should be a JSON object that names the selected scenario, like this: {"output": ""}. No explanation is needed.

Examples

  1. Input: {"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."}

    Output: {"output": "user is not asking about AI"}

  2. Input: {"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."}

    Output: {"output": "user is asking about AI"}

  3. Input: {"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."}

    Output: {"output": "user is interested in AI topics"}

Note

`