|
| 1 | +invalid_mermaid_diagram = """ |
| 2 | +```mermaid |
| 3 | +graph LR |
| 4 | + User((User)) --> |"Run script<br>(e.g., pydantic_mcp.py)"| Agent |
| 5 | +
|
| 6 | + # Agent Frameworks |
| 7 | + subgraph "Agent" |
| 8 | + Agent[Agent] |
| 9 | + ADK["Google ADK<br>(adk_mcp.py)"] |
| 10 | + LG["LangGraph<br>(langgraph_mcp.py)"] |
| 11 | + OAI["OpenAI Agents<br>(oai-agent_mcp.py)"] |
| 12 | + PYD["Pydantic-AI<br>(pydantic_mcp.py)"] |
| 13 | +
|
| 14 | + Agent --> ADK |
| 15 | + Agent --> LG |
| 16 | + Agent --> OAI |
| 17 | + Agent --> PYD |
| 18 | + end |
| 19 | +
|
| 20 | + # MCP Server |
| 21 | + subgraph "MCP" |
| 22 | + direction TD |
| 23 | + MCP["Model Context Protocol Server<br>(run_server.py)"] |
| 24 | + Tools["Tools<br>- add(a, b)<br>- get_current_time() e.g. {current_time}"] |
| 25 | + Resources["Resources<br>- greeting://{{name}}"] |
| 26 | + MCP --- Tools |
| 27 | + MCP --- Resources |
| 28 | + end |
| 29 | +
|
| 30 | + # LLM Providers |
| 31 | + subgraph "LLM Providers" |
| 32 | + direction TD |
| 33 | + OAI_LLM["OpenAI Models"] |
| 34 | + GEM["Google Gemini Models"] |
| 35 | + OTHER["Other LLM Providers..."] |
| 36 | + end |
| 37 | +
|
| 38 | + Logfire[("Logfire<br>Tracing")] |
| 39 | +
|
| 40 | + ADK --> MCP |
| 41 | + LG --> MCP |
| 42 | + OAI --> MCP |
| 43 | + PYD --> MCP |
| 44 | +
|
| 45 | + MCP --> OAI_LLM |
| 46 | + MCP --> GEM |
| 47 | + MCP --> OTHER |
| 48 | +
|
| 49 | + ADK --> Logfire |
| 50 | + LG --> Logfire |
| 51 | + OAI --> Logfire |
| 52 | + PYD --> Logfire |
| 53 | +
|
| 54 | + LLM_Response[("Response")] --> User |
| 55 | + OAI_LLM --> LLM_Response |
| 56 | + GEM --> LLM_Response |
| 57 | + OTHER --> LLM_Response |
| 58 | +
|
| 59 | + style MCP fill:#f9f,stroke:#333,stroke-width:2px |
| 60 | + style User fill:#bbf,stroke:#338,stroke-width:2px |
| 61 | + style Logfire fill:#bfb,stroke:#383,stroke-width:2px |
| 62 | + style LLM_Response fill:#fbb,stroke:#833,stroke-width:2px |
| 63 | +``` |
| 64 | +""" |
| 65 | + |
| 66 | +valid_mermaid_diagram = """ |
| 67 | +```mermaid |
| 68 | +graph LR |
| 69 | + User((User)) --> |"Run script<br>(e.g., pydantic_mcp.py)"| Agent |
| 70 | +
|
| 71 | + %% Agent Frameworks |
| 72 | + subgraph "Agent Frameworks" |
| 73 | + direction TB |
| 74 | + Agent[Agent] |
| 75 | + ADK["Google ADK<br>(adk_mcp.py)"] |
| 76 | + LG["LangGraph<br>(langgraph_mcp.py)"] |
| 77 | + OAI["OpenAI Agents<br>(oai-agent_mcp.py)"] |
| 78 | + PYD["Pydantic-AI<br>(pydantic_mcp.py)"] |
| 79 | +
|
| 80 | + Agent --> ADK |
| 81 | + Agent --> LG |
| 82 | + Agent --> OAI |
| 83 | + Agent --> PYD |
| 84 | + end |
| 85 | +
|
| 86 | + %% MCP Server |
| 87 | + subgraph "MCP Server" |
| 88 | + direction TB |
| 89 | + MCP["Model Context Protocol Server<br>(run_server.py)"] |
| 90 | + Tools["Tools<br>- add(a, b)<br>- get_current_time() e.g. {current_time}"] |
| 91 | + Resources["Resources<br>- greeting://{{name}}"] |
| 92 | + MCP --- Tools |
| 93 | + MCP --- Resources |
| 94 | + end |
| 95 | +
|
| 96 | + subgraph "LLM Providers" |
| 97 | + OAI_LLM["OpenAI Models"] |
| 98 | + GEM["Google Gemini Models"] |
| 99 | + OTHER["Other LLM Providers..."] |
| 100 | + end |
| 101 | +
|
| 102 | + Logfire[("Logfire<br>Tracing")] |
| 103 | +
|
| 104 | + ADK --> MCP |
| 105 | + LG --> MCP |
| 106 | + OAI --> MCP |
| 107 | + PYD --> MCP |
| 108 | +
|
| 109 | + MCP --> OAI_LLM |
| 110 | + MCP --> GEM |
| 111 | + MCP --> OTHER |
| 112 | +
|
| 113 | + ADK --> Logfire |
| 114 | + LG --> Logfire |
| 115 | + OAI --> Logfire |
| 116 | + PYD --> Logfire |
| 117 | +
|
| 118 | + LLM_Response[("Response")] --> User |
| 119 | + OAI_LLM --> LLM_Response |
| 120 | + GEM --> LLM_Response |
| 121 | + OTHER --> LLM_Response |
| 122 | +
|
| 123 | + style MCP fill:#f9f,stroke:#333,stroke-width:2px |
| 124 | + style User fill:#bbf,stroke:#338,stroke-width:2px |
| 125 | + style Logfire fill:#bfb,stroke:#383,stroke-width:2px |
| 126 | + style LLM_Response fill:#fbb,stroke:#833,stroke-width:2px |
| 127 | +``` |
| 128 | +""" |
0 commit comments