Overview
Components are reusable artifacts that can be versioned, shared, and referenced across your ensembles. They’re managed by edgit, Ensemble’s version control system for AI artifacts.Component Types
Conductor supports six types of components:| Component | File Type | Purpose | Example Reference |
|---|---|---|---|
| Schemas | .json | JSON Schema for structured AI outputs | schemas/invoice@v1 |
| Prompts | .md | AI instruction templates | prompts/summarizer@latest |
| Configs | .json, .yaml | Reusable configuration | configs/db-prod@stable |
| Queries | .sql | Database query templates | queries/analytics@v2 |
| Scripts | .js, .ts | JavaScript/TypeScript functions | scripts/validators@v1 |
| Templates | .html | HTML templates for rendering | templates/layouts/main@v1 |
Why Use Components?
Version Control
Reusability
Define once, use everywhere:Team Collaboration
- Share components across teams
- Review changes before deployment
- Roll back to previous versions
- A/B test different versions
Gradual Rollouts
Component References
Versioned Reference
Reference a specific version:Tag Reference
Reference by tag:Major Version Reference
Auto-upgrade to latest patch/minor:Latest Reference
Always use the latest version:Shorthand (defaults to @latest)
Component Organization
Organize components in your project:Versioning Components
Initialize Component
Semantic Versioning
Follow semver for clear version meanings:- Major (v2.0.0): Breaking changes
- Minor (v1.1.0): New features, backwards compatible
- Patch (v1.0.1): Bug fixes, no new features
Tagging
Tag versions for deployment stages:View Versions
A/B Testing Components
Test different component versions:Component Types Deep Dive
Schemas
JSON Schema definitions for structured AI outputs.- Use for: Extracting structured data from AI
- Docs: Schema Components
Prompts
Markdown files with AI instructions and templates.- Use for: Reusable AI prompts with variable interpolation
- Docs: Prompt Components
Configs
JSON/YAML configuration files.- Use for: Database configs, API settings, feature flags
- Docs: Config Components
Queries
SQL query templates.- Use for: Reusable database queries with parameters
- Docs: Query Components
Scripts
JavaScript/TypeScript functions.- Use for: Custom validators, transformers, utilities
- Docs: Script Components

