Skip to main content

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, use logic, implements traits
  • Flows with stages, routing, flags, MCP actions, and judges
  • Imports for DRY composition across .vml files

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

  1. Open vscode-extension/ in VS Code (or the whole repo).
  2. Press F5 (Run Extension) to open an Extension Development Host.
  3. In that window, open a folder with vml.json (e.g. examples/support_project) and edit .vml files.

Install a VSIX

cd vscode-extension
vsce package    # requires: npm install -g @vscode/vsce

Then in VS Code: ExtensionsInstall 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vanguard_modeling_language-1.1.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vanguard_modeling_language-1.1.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file vanguard_modeling_language-1.1.0.tar.gz.

File metadata

File hashes

Hashes for vanguard_modeling_language-1.1.0.tar.gz
Algorithm Hash digest
SHA256 104cf5acf38fd8bac21c679f144f8627c115b7a51a575777f66a3e4d8c1395e9
MD5 b937ddb31c59743db8550d07e8242f52
BLAKE2b-256 358174383aac4f9a5fee0cfe3a260cf7413fad225a9d7dc1e35ddaa4a4888832

See more details on using hashes here.

Provenance

The following attestation bundles were made for vanguard_modeling_language-1.1.0.tar.gz:

Publisher: publish.yml on Selkomark/vanguard-modeling-language

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vanguard_modeling_language-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vanguard_modeling_language-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c37edad5a99f5d5ac8463d738f8224f5f6df0c5ce6780772ccffbf4d70d32fd1
MD5 97bb76bfc59b020c7b4813748b4c38df
BLAKE2b-256 b5e5f8cec9c8db7449c7049142cdc307a94bd7eb10e7b487ced58513bf969a79

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page