ai-symphony/
ai-instruction/
analysis/
basic/
dialog/
publication/
text/
translation/
docs/
{api}/
api-reference.md
architecture.md
examples.md
installation.md
quickstart.md
examples/
advanced/
analysis/
basic/
multi_model/
real_world/
text_processing/
examples-doc/
advanced/
analysis/
basic/
multi_model/
text_processing/
_quarto.yml
ai-reporter-example.qmd
index.qmd
quickstart-example.qmd
quickstart-fixes.md
quickstart-summary.md
styles.css
output/
transcript_publication/
report/
src/
ai_symphony/
test-reports/
tests/
AGENTS.md
CHANGELOG.md
CONTRIBUTING.md
LICENSE
MANIFEST.in
PLAN.md
PROJECT.yaml
pyproject.toml
README.md
REFACTORING_COMPLETE.md
requirements.txt
setup.py
test_ai_symphony.py
uv.lock
[DRAFT — edit this] A general-purpose package for processing chains of AI-powered instructions with variable substitution Inferred stage: development. Define the specific deliverable, success state, and timeline.
Success criteria:| Code | /Users/friedrichstr/ai-mac-studio/agents/infrastructure/ai-symphony |
| Docs | /Users/friedrichstr/ai-mac-studio/agents/infrastructure/ai-symphony/docs |
| Tests | /Users/friedrichstr/ai-mac-studio/agents/infrastructure/ai-symphony/tests |
| Check | Path | Status | Detail |
|---|---|---|---|
| code | /Users/friedrichstr/ai-mac-studio/agents/infrastructure/ai-s | ✓ ok | 27 items, last_modified=2026-08-24 |
| docs | /Users/friedrichstr/ai-mac-studio/agents/infrastructure/ai-s | ✓ ok | 6 items, last_modified=2026-08-14 |
| tests | /Users/friedrichstr/ai-mac-studio/agents/infrastructure/ai-s | ? empty | empty directory, last_modified=2025-09-11 |
Orchestrate AI instruction pipelines with elegance and power
AI Symphony is a powerful orchestration framework for chaining AI-powered instructions with seamless variable substitution and multi-model support. Create sophisticated AI workflows that combine multiple processing steps into cohesive, intelligent pipelines.
{{variable}} template format across all instructionspip install ai-symphony
from ai_symphony import AISymphony
# Initialize with your instruction templates directory
symphony = AISymphony(instruction_dir="ai-instruction")
# Run a single instruction
result = symphony.run_instruction(
instruction_file="analyze_text.j2",
variables={"input": "Your text here", "focus": "main_points"}
)
print(result)
# Define a multi-step pipeline
steps = [
{
"name": "extract",
"instruction_file": "extract_facts.j2",
"temperature": 0.1
},
{
"name": "analyze",
"instruction_file": "analyze_facts.j2",
"variables": {"analysis_type": "comprehensive"},
"temperature": 0.3
},
{
"name": "summarize",
"instruction_file": "create_summary.j2",
"variables": {"max_sentences": "3"}
}
]
# Execute the pipeline
result = symphony.execute_pipeline(
steps=steps,
initial_input="Your document content...",
pipeline_name="document_analysis"
)
if result.success:
print("Final output:", result.final_output)
print(f"Completed in {result.total_duration_seconds:.1f} seconds")
# pipeline.yaml
name: "content_processor"
description: "Process and enhance content through AI pipeline"
continue_on_error: false
enable_handshake: true
steps:
- name: "extract_key_points"
instruction_file: "extract_points.j2"
temperature: 0.2
- name: "enhance_content"
instruction_file: "enhance_writing.j2"
variables:
style: "professional"
tone: "engaging"
temperature: 0.4
# Execute YAML pipeline
result = symphony.execute_pipeline_from_yaml("pipeline.yaml")
AI Symphony is built around several core components:
Explore our comprehensive example collection:
| Provider | Status | Models |
|---|---|---|
| Google Gemini | ✅ | Gemini Pro, Gemini Flash |
| Anthropic Claude | ✅ | Claude 3 Sonnet, Claude 3 Haiku |
| OpenAI | ✅ | GPT-4, GPT-3.5 Turbo |
| Ollama | ✅ | Llama 2, Mistral, CodeLlama |
| Groq | ✅ | Llama 2 70B, Mixtral 8x7B |
Set up your AI provider API keys:
# Choose one or more providers
export GEMINI_API_KEY="your-gemini-key"
export ANTHROPIC_API_KEY="your-claude-key"
export OPENAI_API_KEY="your-openai-key"
export GROQ_API_KEY="your-groq-key"
# Ollama runs locally, no API key needed
We welcome contributions! Please see our Contributing Guide for details.
# the repository is not published; the code lives in ~/ai-mac-studio/agents/infrastructure/ai-symphony
cd ai-symphony
pip install -e ".[dev]"
python test_ai_symphony.py
This project is licensed under the MIT License - see the LICENSE file for details.
Ready to orchestrate your AI workflows? Start with our Quick Start Guide and join the AI Symphony! 🎼
| SHA | Date | Subject |
|---|---|---|
56b2b48 | 2026-03-14 | chore: initial commit (ai-platform v2 git infrastructure) |