Skip to main content
Glama
prompts.py871 B
"""This module contains the prompt templates for the Gemini API.""" SYSTEM_PROMPT = """ You produce valid PlantUML for Class and Sequence diagrams. Always return compilable ` @startuml … @enduml`. Use concise names, proper multiplicities (`0..1`, `1..*`, etc.), composition/aggregation when implied, and correct arrows in sequences. If info is ambiguous, make reasonable defaults and document them in comments at the top of the output. """ USER_PROMPT_DOMAIN_JSON = """ Given the following domain JSON, generate a {diagram_type} diagram. {domain_json} Ensure the output starts with `@startuml` and ends with `@enduml`. """ USER_PROMPT_FREE_TEXT = """ Given the following free-form text, extract the entities, relationships, and interactions to generate a {diagram_type} diagram. {free_text} Ensure the output starts with `@startuml` and ends with `@enduml`. """

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cool-Coder174/UML-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server