MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / plan_visualization

Function plan_visualization

apps/agent/src/plan.py:7–21  ·  view source on GitHub ↗

Plan a visualization before building it. MUST be called before generateSandboxedUi, pieChart, or barChart. Outlines the approach, technology choice, and key elements. Args: approach: One sentence describing the visualization strategy. technology: The primary technology (

(
    approach: str, technology: str, key_elements: list[str]
)

Source from the content-addressed store, hash-verified

5
6@tool
7def plan_visualization(
8 approach: str, technology: str, key_elements: list[str]
9) -> str:
10 """Plan a visualization before building it. MUST be called before
11 generateSandboxedUi, pieChart, or barChart. Outlines the approach,
12 technology choice, and key elements.
13
14 Args:
15 approach: One sentence describing the visualization strategy.
16 technology: The primary technology (e.g. "inline SVG", "Chart.js",
17 "HTML + Canvas", "Three.js", "Mermaid", "D3.js").
18 key_elements: 2-4 concise bullet points describing what will be built.
19 """
20 elements = "\n".join(f" - {e}" for e in key_elements)
21 return f"Plan: {approach}\nTech: {technology}\n{elements}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected