Vanguard Modeling Language compiler for agentic AI
Project description
Vanguard Modeling Language
Vanguard Modeling Language is an open-source modeling language compiler aimed to complement agentic AI development in order to define the logics and requirements of prompts into a fixed format in order to mitigate consistency of results among different AI agent models.
Repository: github.com/Selkomark/vanguard-modeling-language
Contributors and AI assistants: see AGENTS.md for project scope and architecture, and TODO.md for the roadmap.
Scope
VML is a compile-time DSL compiler: .vml source in, static artifacts (dist/prompts, dist/finetune, dist/flows, dist/flags, dist/judges, dist/manifest.json) out. It does not call LLMs, invoke MCP, run conversations, or manage session/context state — that belongs to whatever downstream platform consumes these artifacts, not this repo.
Meant to be consumed as a dependency by other projects: pip install vanguard-modeling-language. For integrating VML into another project — install, config, and a runnable example of loading compiled artifacts — see docs/integration.md.
Environment
Use a dedicated environment before installing (Python 3.10+).
venv (stdlib)
python3 -m venv .venv
source .venv/bin/activate # macOS/Linux
On Windows: .venv\Scripts\activate
conda
conda create -n vml python=3.10 # or 3.11+
conda activate vml
Install
pip install vanguard-modeling-language
From source instead, with the environment active:
pip install -e ".[dev]"
Requires Python 3.10+.
Compile a project
vml compile examples/support_project
By default, artifacts are written to <project>/dist. Override with --out:
vml compile examples/support_project --out ./build
Outputs (under dist/ by default):
| Path | Description |
|---|---|
dist/prompts/<Model>.md |
Rendered system prompt + constraints |
dist/finetune/openai/<Model>.jsonl |
OpenAI chat fine-tuning JSONL |
dist/finetune/anthropic/<Model>.jsonl |
Claude fine-tuning JSONL (Amazon Bedrock format — Anthropic has no hosted fine-tuning API) |
dist/finetune/gemini/<Model>.jsonl |
Gemini supervised fine-tuning JSONL (Vertex AI format) |
dist/flows/<Flow>.flow.json |
Conversation flow IR |
dist/flags/<Flow>.flags.json |
Flag definitions |
dist/judges/<Judge>.judge.md |
Judge validation prompts |
dist/manifest.json |
Project artifact index |
Validate without writing files:
vml compile examples/support_project --check-only
Language features
- Models with
extends,uselogic,implementstraits - Flows with stages, routing, flags, MCP actions, and judges
- Imports for DRY composition across
.vmlfiles
See docs/language.md and docs/orchestrator.md.
VS Code extension
Editor support (syntax highlighting, snippets, compile diagnostics) lives in vscode-extension/.
Try in development
- Open
vscode-extension/in VS Code (or the whole repo). - Press F5 (Run Extension) to open an Extension Development Host.
- In that window, open a folder with
vml.json(e.g.examples/support_project) and edit.vmlfiles.
Install a VSIX
cd vscode-extension
vsce package # requires: npm install -g @vscode/vsce
Then in VS Code: Extensions → Install from VSIX…
The extension runs vml compile <project> --check-only when you save or open .vml files. Install the compiler (pip install -e .) so vml is on your PATH (or set vml.compilerPath in settings).
Tests
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vanguard_modeling_language-1.1.0.tar.gz.
File metadata
- Download URL: vanguard_modeling_language-1.1.0.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
104cf5acf38fd8bac21c679f144f8627c115b7a51a575777f66a3e4d8c1395e9
|
|
| MD5 |
b937ddb31c59743db8550d07e8242f52
|
|
| BLAKE2b-256 |
358174383aac4f9a5fee0cfe3a260cf7413fad225a9d7dc1e35ddaa4a4888832
|
Provenance
The following attestation bundles were made for vanguard_modeling_language-1.1.0.tar.gz:
Publisher:
publish.yml on Selkomark/vanguard-modeling-language
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vanguard_modeling_language-1.1.0.tar.gz -
Subject digest:
104cf5acf38fd8bac21c679f144f8627c115b7a51a575777f66a3e4d8c1395e9 - Sigstore transparency entry: 2335109641
- Sigstore integration time:
-
Permalink:
Selkomark/vanguard-modeling-language@a5a4f0f6a8f5650369c954b4aae4dea3786df9dd -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Selkomark
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5a4f0f6a8f5650369c954b4aae4dea3786df9dd -
Trigger Event:
release
-
Statement type:
File details
Details for the file vanguard_modeling_language-1.1.0-py3-none-any.whl.
File metadata
- Download URL: vanguard_modeling_language-1.1.0-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c37edad5a99f5d5ac8463d738f8224f5f6df0c5ce6780772ccffbf4d70d32fd1
|
|
| MD5 |
97bb76bfc59b020c7b4813748b4c38df
|
|
| BLAKE2b-256 |
b5e5f8cec9c8db7449c7049142cdc307a94bd7eb10e7b487ced58513bf969a79
|
Provenance
The following attestation bundles were made for vanguard_modeling_language-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on Selkomark/vanguard-modeling-language
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vanguard_modeling_language-1.1.0-py3-none-any.whl -
Subject digest:
c37edad5a99f5d5ac8463d738f8224f5f6df0c5ce6780772ccffbf4d70d32fd1 - Sigstore transparency entry: 2335109653
- Sigstore integration time:
-
Permalink:
Selkomark/vanguard-modeling-language@a5a4f0f6a8f5650369c954b4aae4dea3786df9dd -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Selkomark
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5a4f0f6a8f5650369c954b4aae4dea3786df9dd -
Trigger Event:
release
-
Statement type: