Production-ready agentic primitives and workflow patterns for building reliable AI applications.
TTA.dev is a curated collection of battle-tested, production-ready components for building reliable AI applications. Every component here has:
Philosophy: Only proven code enters this repository.
Production-ready composable workflow primitives for building reliable, observable agent workflows.
Features:
>>, |)Installation:
pip install tta-workflow-primitives
Quick Start:
from tta_workflow_primitives import RouterPrimitive, CachePrimitive
# Compose workflow with operators
workflow = (
validate_input >>
CachePrimitive(ttl=3600) >>
process_data >>
generate_response
)
# Execute
result = await workflow.execute(data, context)
Development utilities and meta-level primitives for building robust development processes.
Features:
Installation:
pip install dev-primitives
# Install with pip
pip install tta-workflow-primitives dev-primitives
# Or with uv (recommended)
uv pip install tta-workflow-primitives dev-primitives
from tta_workflow_primitives import WorkflowContext
from tta_workflow_primitives.core.base import LambdaPrimitive
# Define primitives
validate = LambdaPrimitive(lambda x, ctx: {"validated": True, **x})
process = LambdaPrimitive(lambda x, ctx: {"processed": True, **x})
generate = LambdaPrimitive(lambda x, ctx: {"result": "success"})
# Compose with >> operator
workflow = validate >> process >> generate
# Execute
context = WorkflowContext(workflow_id="demo", session_id="123")
result = await workflow.execute({"input": "data"}, context)
print(result) # {"validated": True, "processed": True, "result": "success"}
TTA.dev follows a composable, modular architecture:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Your Application β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β tta-workflow-primitives β
β ββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββ β
β β Router β Cache β Timeout β β
β ββββββββββββββΌβββββββββββββββΌββββββββββββββββββ€ β
β β Parallel β Conditional β Retry β β
β ββββββββββββββ΄βββββββββββββββ΄ββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β dev-primitives β
β ββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββ β
β β Logging β Retries β Test Utils β β
β ββββββββββββββ΄βββββββββββββββ΄ββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
All packages maintain 100% test coverage with comprehensive test suites.
# Run all tests
uv run pytest -v
# Run with coverage
uv run pytest --cov=packages --cov-report=html
# Run specific package tests
uv run pytest packages/tta-workflow-primitives/tests/ -v
# Clone repository
git clone https://github.com/theinterneti/TTA.dev
cd TTA.dev
# Install dependencies
uv sync --all-extras
# Run tests
uv run pytest -v
# Run quality checks
uv run ruff format .
uv run ruff check . --fix
uvx pyright packages/
We provide VS Code tasks for common operations:
Cmd/Ctrl+Shift+PWe welcome contributions! However, only battle-tested, proven code is accepted.
Before submitting a PR, ensure:
Create feature branch
git checkout -b feature/add-awesome-feature
Make changes and validate
./scripts/validate-package.sh <package-name>
Commit with semantic message
git commit -m "feat(package): Add awesome feature"
Create PR
gh pr create --title "feat: Add awesome feature"
Squash merge after approval
See full contribution guide (Coming soon)
80% coverage required
PHASE3_EXAMPLES_COMPLETE.md for InstrumentedPrimitive pattern guideAll PRs automatically run:
Merging requires all checks to pass.
| Package | Version | Tests | Coverage | Status |
|---|---|---|---|---|
| tta-workflow-primitives | 0.1.0 | 12/12 β | 100% | π’ Stable |
| dev-primitives | 0.1.0 | TBD | TBD | π’ Stable |
MIT License - see LICENSE for details
Built with:
If you find TTA.dev useful, please consider giving it a star! β
Last Updated: 2025-10-27 Status: π Ready for migration