Examples
Explore real-world examples of SigmOS in action. Each example demonstrates different aspects of the language.
🤖 Basic Examples
AI Agent
A simple AI agent with personality and conversation capabilities.
spec "Agent" v1.0 {
description: "AI Agent with LLM capabilities"
inputs:
name: string
tone: enum("friendly", "hostile")
actions:
respond: prompt {
system: "You are {{name}} with {{tone}} personality."
user: "{{input.message}}"
model: "gpt-4"
}
} Content Pipeline
AI-powered content generation and validation pipeline.
spec "ContentPipeline" v1.0 {
inputs:
topic: string
audience: enum("technical", "general")
actions:
generate: prompt {
system: "Expert content creator"
user: "Write about {{topic}} for {{audience}}"
}
}