#!/usr/bin/env python3
"""
Minimal example - Build an app with just a few lines of code.
"""

from agentchain import AgentChain

# That's it! Just requirements, model, output directory, and run.
result = AgentChain() \
    .requirements("Build a simple calculator CLI app in Python that supports +, -, *, /") \
    .model("deepseek-coder-v2:16b") \
    .output("./calculator") \
    .run()

if result.success:
    print(f"✓ Project built successfully!")
    print(f"  Output: {result.output.get('output_dir')}")
else:
    print(f"✗ Build failed: {result.error}")
