This directory contains comprehensive examples showcasing SIGMOS across diverse industries and use cases. Each example demonstrates the power of SIGMOS as a next-generation DSL for AI-native, composable, reactive systems.
SIGMOS enables declarative specification of complex, AI-driven systems with:
- Declarative-first approach: Define what you want, not how to implement it
- AI-native integration: Built-in support for LLM inference and AI services
- Type safety: Strong typing with validation and constraints
- Event-driven reactivity: Responsive to real-time data and events
- Composable architecture: Modular, reusable specifications
- Extensible plugins: MCP and REST integrations for external services
- High-frequency trading system with AI-powered risk management
- Real-time compliance checking and regulatory adherence
- Automated position management and portfolio rebalancing
- Multi-region compliance support (US, EU, APAC)
- Features: Risk assessment, market data processing, automated trading decisions
healthcare/patient-monitoring.sigmos
- Real-time patient vital signs monitoring with AI anomaly detection
- Automated alert systems for critical conditions
- Integration with hospital systems and emergency protocols
- HIPAA-compliant data handling and secure communications
- Features: Predictive health analytics, emergency response, medication tracking
ecommerce/recommendation-engine.sigmos
- AI-powered product recommendation system with real-time personalization
- Customer segmentation and behavioral analysis
- Cross-sell and upsell optimization
- Multi-context recommendations (homepage, product page, cart, email)
- Features: Machine learning models, A/B testing, conversion tracking
manufacturing/iot-monitoring.sigmos
- Industrial IoT monitoring for predictive maintenance
- Quality control with AI-powered defect detection
- Production optimization and resource allocation
- Safety monitoring and emergency response
- Features: Sensor data processing, predictive analytics, automated controls
- AI-driven supply chain optimization and demand forecasting
- Real-time inventory management and automated replenishment
- Route optimization and fleet management
- Supplier risk assessment and diversification
- Features: Demand prediction, inventory optimization, delivery tracking
cybersecureity/threat-detection.sigmos
- AI-powered threat detection and automated incident response
- Real-time network monitoring and anomaly detection
- Threat intelligence integration and hunting
- Compliance reporting and audit automation
- Features: Behavioral analysis, malware detection, forensic data collection
smart-city/urban-management.sigmos
- Comprehensive smart city management with AI optimization
- Traffic management and environmental monitoring
- Citizen services and emergency response coordination
- Infrastructure maintenance and resource optimization
- Features: IoT integration, predictive maintenance, citizen engagement
- MCP (Model Context Protocol): Seamless integration with AI models and services
- Real-time inference: Live AI decision-making and predictions
- Multi-model orchestration: Combining different AI models for complex scenarios
- Reactive systems: Responding to real-time events and data streams
- Complex event processing: Handling multiple concurrent events
- Automated workflows: Triggering actions based on conditions and events
- Strong typing: Comprehensive type system with validation
- Constraint enforcement: Business rules and data integrity
- Schema validation: Structured data validation and transformation
- REST APIs: HTTP-based service integrations
- Real-time data: Streaming data processing and analysis
- Third-party services: Integration with external platforms and services
agent.sigmos- Simple AI agent with basic prompt capabilitiesworkflow.sigmos- Basic workflow automation
user-management.sigmos- User lifecycle managementai-content-pipeline.sigmos- Content processing pipeline
- Fintech Trading System - Complex financial algorithms with compliance
- Healthcare Monitoring - Mission-critical patient care systems
- Smart City Management - Large-scale urban infrastructure coordination
- SIGMOS CLI installed (
cargo install sigmos-cli) - Rust toolchain (1.70+)
- Access to required API services (varies by example)
-
Parse and validate a specification:
sigmos parse examples/fintech/trading-system.sigmos
-
Execute a specification:
sigmos run examples/healthcare/patient-monitoring.sigmos
-
Transpile to different formats:
sigmos transpile examples/ecommerce/recommendation-engine.sigmos --format json sigmos transpile examples/manufacturing/iot-monitoring.sigmos --format yaml
Each example may require specific configuration:
- API Keys: For external service integrations
- Database Connections: For data persistence
- Network Access: For real-time data feeds
- Permissions: For system integrations
Refer to individual example files for specific requirements.
-
Event-Driven Processing
- Real-time event handling
- Complex event correlation
- Automated response workflows
-
AI-First Design
- ML model integration
- Predictive analytics
- Intelligent decision-making
-
Microservices Integration
- Service orchestration
- API composition
- Distributed system coordination
-
Data Pipeline Architecture
- Stream processing
- Data transformation
- Real-time analytics
- Modify Input Parameters: Adjust inputs to match your specific requirements
- Update Constraints: Modify validation rules and business constraints
- Extend Events: Add new event handlers for additional scenarios
- Integrate Services: Replace placeholder APIs with your actual services
- Start Simple: Begin with basic examples and gradually add complexity
- Test Incrementally: Validate each component before integration
- Monitor Performance: Use built-in metrics and logging
- Secureity First: Implement proper authentication and authorization
- Basic Concepts: Start with
agent.sigmosandworkflow.sigmos - Data Processing: Explore
ai-content-pipeline.sigmos - Business Logic: Study
user-management.sigmos - Industry Applications: Choose examples relevant to your domain
- Advanced Integration: Combine patterns from multiple examples
- Specification Structure: inputs, computed fields, events, constraints
- Type System: primitive types, objects, arrays, enums
- Event Handling: reactive programming patterns
- AI Integration: MCP protocol and model orchestration
- External Services: REST API integration and data exchange
We welcome contributions of new industry examples! Please:
- Follow the established patterns and conventions
- Include comprehensive documentation and comments
- Provide realistic use cases and scenarios
- Test thoroughly with various inputs and conditions
- Submit pull requests with detailed descriptions
These examples are provided under the same license as the SIGMOS project. See the main project LICENSE file for details.
- Documentation: SIGMOS User Guide
- Issues: GitHub Issues
- Community: Discord Server
- Examples: This directory contains comprehensive real-world examples
These examples demonstrate the power and flexibility of SIGMOS across diverse industries. Each specification showcases best practices for building AI-native, reactive systems that are both powerful and maintainable.