C#
Current Status
Section titled “Current Status”The Prompty TypeSpec schema emitter generates C# model classes at
runtime/csharp/Prompty.Core/Model/. These provide the typed data model
for .prompty files but the runtime pipeline (loader, renderer, parser,
executor, processor) is not yet implemented.
What’s Generated
Section titled “What’s Generated”The emitter produces C# classes for all schema types:
Prompty— root typeModel,ModelOptions— model configurationConnectionand subtypes (ApiKeyConnection,ReferenceConnection, etc.)Property,ArrayProperty,ObjectProperty— input/output schemasTooland subtypes (FunctionTool,McpTool,OpenApiTool,CustomTool)Template,Format,Parser— template configuration
Planned Architecture
Section titled “Planned Architecture”The C# runtime will follow the same four-stage pipeline as Python and TypeScript:
- Renderer — Jinja2-compatible template rendering (Scriban or DotLiquid)
- Parser — Role marker parsing → message list
- Executor — Microsoft Foundry SDK / OpenAI SDK integration
- Processor — Response extraction and structured output
Contributing
Section titled “Contributing”If you’re interested in helping build the C# runtime, see the Contributing guide and check the GitHub issues for C#-related tasks.