Skip to content

Diagram

This samples analyzes all the code in context and tries to generate a diagram using mermaid.

diagram.genai.mts
script({
title: "Generate a class diagram using mermaid of the code symbols in content.",
group: "copilot",
})
def("CODE", env.files)
$`Generate a class diagram using mermaid of the code symbols in the CODE.`