UOM Translator (LangGraph)
prompts
System Prompts for LangGraph Nodes.
These multi-line strings define the core persona, instructions, and few-shot
examples for the LLM agents operating within the orchestrator’s state machine.
They are dynamically interpolated at runtime using str.format() to inject
the chosen frameworks and context variables.
View Source
Dynamically build the system prompt based on the specific translation pair.
This function assembles a comprehensive system prompt by combining the base persona,
rules, and dynamic framework configurations retrieved from the file system snippets.
It injects the exact C# and Java dependencies (like pom.xml or .csproj values) directly
into the prompt context so the LLM understands the exact versions it is translating for.