Fix: Correct formatting of Condition Agent prompt (#4626)

This commit is contained in:
toi500 2025-06-11 15:07:02 +02:00 committed by GitHub
parent dfb401ad83
commit 3d2c5c90e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 9 deletions

View File

@ -39,15 +39,12 @@ export const DEFAULT_HUMAN_INPUT_DESCRIPTION_HTML = `<p>Summarize the conversati
</ul> </ul>
` `
export const CONDITION_AGENT_SYSTEM_PROMPT = ` export const 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>
<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> <ul>
<li><strong>Input</strong>: A string representing the user's query, message or data.</li> <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>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> <li><strong>Instruction</strong>: Determine which of the provided scenarios is the best fit for the input.</li>
</ul> </ul>
<h2>Steps</h2> <h2>Steps</h2>
<ol> <ol>
<li><strong>Read the input string</strong> and the list of scenarios.</li> <li><strong>Read the input string</strong> and the list of scenarios.</li>
@ -55,10 +52,8 @@ export const CONDITION_AGENT_SYSTEM_PROMPT = `
<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>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> <li><strong>Output the result</strong>: Return the selected scenario in the specified JSON format.</li>
</ol> </ol>
<h2>Output Format</h2> <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> <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> <h2>Examples</h2>
<ol> <ol>
<li> <li>
@ -74,10 +69,8 @@ export const CONDITION_AGENT_SYSTEM_PROMPT = `
<p><strong>Output</strong>: <code>{"output": "user is interested in AI topics"}</code></p> <p><strong>Output</strong>: <code>{"output": "user is interested in AI topics"}</code></p>
</li> </li>
</ol> </ol>
<h2>Note</h2> <h2>Note</h2>
<ul> <ul>
<li>Ensure that the input scenarios align well with potential user queries for accurate matching.</li> <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> <li>DO NOT include anything other than the JSON in your response.</li>
</ul> </ul>`
`