mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
fix: flash problem
This commit is contained in:
@@ -75,7 +75,16 @@ ${lastMessage.content}
|
||||
tools: {
|
||||
// Client-side tool that will be executed on the client
|
||||
display_diagram: {
|
||||
description: "Display a diagram on draw.io",
|
||||
description: `Display a diagram on draw.io. You only need to pass the nodes inside the <root> tag (including the <root> tag itself) in the XML string.
|
||||
For example:
|
||||
<root>
|
||||
<mxCell id="0"/>
|
||||
<mxCell id="1" parent="0"/>
|
||||
<mxGeometry x="20" y="20" width="100" height="100" as="geometry"/>
|
||||
<mxCell id="2" value="Hello, World!" style="shape=rectangle" parent="1">
|
||||
<mxGeometry x="20" y="20" width="100" height="100" as="geometry"/>
|
||||
</mxCell>
|
||||
</root>`,
|
||||
parameters: z.object({
|
||||
xml: z.string().describe("XML string to be displayed on draw.io")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user