mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
docs: fix append_diagram instructions for consistency
- Change 'Do NOT include' to 'Do NOT start with' (clearer intent) - Add <mxCell id="0"> to prohibited start patterns - Change 'closing tags </root></mxGraphModel>' to just '</root>' (wrapWithMxFile handles the rest)
This commit is contained in:
@@ -444,9 +444,9 @@ IMPORTANT: Keep edits concise:
|
|||||||
WHEN TO USE: Only call this tool after display_diagram was truncated (you'll see an error message about truncation).
|
WHEN TO USE: Only call this tool after display_diagram was truncated (you'll see an error message about truncation).
|
||||||
|
|
||||||
CRITICAL INSTRUCTIONS:
|
CRITICAL INSTRUCTIONS:
|
||||||
1. Do NOT include <mxGraphModel> or <root> tags - they already exist in the partial
|
1. Do NOT start with <mxGraphModel>, <root>, or <mxCell id="0"> - they already exist in the partial
|
||||||
2. Continue from EXACTLY where your previous output stopped
|
2. Continue from EXACTLY where your previous output stopped
|
||||||
3. Generate the remaining XML including closing tags </root></mxGraphModel>
|
3. End with the closing </root> tag to complete the diagram
|
||||||
4. If still truncated, call append_diagram again with the next fragment
|
4. If still truncated, call append_diagram again with the next fragment
|
||||||
|
|
||||||
Example: If previous output ended with '<mxCell id="x" style="rounded=1', continue with ';" vertex="1">...' and complete the remaining elements.`,
|
Example: If previous output ended with '<mxCell id="x" style="rounded=1', continue with ';" vertex="1">...' and complete the remaining elements.`,
|
||||||
|
|||||||
@@ -244,9 +244,9 @@ ${partialEnding}
|
|||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
NEXT STEP: Call append_diagram with the continuation XML.
|
NEXT STEP: Call append_diagram with the continuation XML.
|
||||||
- Do NOT include <mxGraphModel> or <root> tags
|
- Do NOT start with <mxGraphModel>, <root>, or <mxCell id="0"> (they already exist)
|
||||||
- Start from EXACTLY where you stopped
|
- Start from EXACTLY where you stopped
|
||||||
- Continue until complete with </root></mxGraphModel>`,
|
- End with the closing </root> tag to complete the diagram`,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,9 +186,9 @@ const EXTENDED_ADDITIONS = `
|
|||||||
**WHEN TO USE:** Only call this tool when display_diagram output was truncated (you'll see an error message about truncation).
|
**WHEN TO USE:** Only call this tool when display_diagram output was truncated (you'll see an error message about truncation).
|
||||||
|
|
||||||
**CRITICAL RULES:**
|
**CRITICAL RULES:**
|
||||||
1. Do NOT include <mxGraphModel>, <root>, or <mxCell id="0"> - they already exist in the partial
|
1. Do NOT start with <mxGraphModel>, <root>, or <mxCell id="0"> - they already exist in the partial
|
||||||
2. Continue from EXACTLY where your previous output stopped
|
2. Continue from EXACTLY where your previous output stopped
|
||||||
3. Generate the remaining XML including closing tags </root></mxGraphModel>
|
3. End with the closing </root> tag to complete the diagram
|
||||||
4. If still truncated, call append_diagram again with the next fragment
|
4. If still truncated, call append_diagram again with the next fragment
|
||||||
|
|
||||||
**Example:** If previous output ended with \`<mxCell id="x" style="rounded=1\`, continue with \`;" vertex="1">...\` and complete the remaining elements.
|
**Example:** If previous output ended with \`<mxCell id="x" style="rounded=1\`, continue with \`;" vertex="1">...\` and complete the remaining elements.
|
||||||
|
|||||||
Reference in New Issue
Block a user