Metadata-Version: 2.4
Name: sutra-ai
Version: 0.1.2
Summary: Local-first execution runtime for deterministic LLM workflows with Ollama.
Author: Rajat Pandey
License-Expression: MIT
Project-URL: Homepage, https://github.com/rajat4493/SutraFramework
Project-URL: Repository, https://github.com/rajat4493/SutraFramework
Project-URL: Issues, https://github.com/rajat4493/SutraFramework/issues
Project-URL: Changelog, https://github.com/rajat4493/SutraFramework/blob/main/CHANGELOG.md
Keywords: pipeline,cli,ollama
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Provides-Extra: ui
Requires-Dist: fastapi>=0.110; extra == "ui"
Requires-Dist: uvicorn>=0.29; extra == "ui"
Requires-Dist: jinja2>=3.1; extra == "ui"
Provides-Extra: pdf
Requires-Dist: pypdf>=4.0.0; extra == "pdf"
Provides-Extra: rag
Requires-Dist: numpy>=1.26; extra == "rag"
Requires-Dist: sentence-transformers>=2.2.2; extra == "rag"
Requires-Dist: reportlab>=4.0.0; extra == "rag"
Requires-Dist: pypdf>=4.0.0; extra == "rag"
Dynamic: license-file

**Sutra**

Sutra is a small framework for running sequential LLM pipelines locally.
This project is not affiliated with, endorsed by, or associated with any company or product named Sutra or Sutra AI.

## Install
```bash
pip install sutra-ai
```

## Examples
### Hello world
```bash
pip install -e .
sutra run examples/hello_world/pipeline.py --text "Hello example"
```

### Support triage
```bash
pip install -e .
sutra run examples/support_triage/pipeline.py --text "Need help with the dashboard"
sutra run examples/support_triage/pipeline.py --input examples/support_triage/sample_input.json
```

```json
{
  "classification": [{"category": "bug", "urgency": "high"}],
  "replier": {"reply": "Team notified, working on it.", "tone": "calm"},
  "summary": {"summary": "Dashboard error blocking invoices", "next_steps": "Network to confirm deployment", "status": "pending"}
}
```

## Commands
- `sutra create <name> <description>` (writes to `projects/<name>`; `projects/` is a working directory and not tracked in this repo)
- `sutra run <pipeline.py> [--text TEXT | \"TEXT\"]`
- `sutra doctor`

## Requirements
- Python >=3.10
- Ollama server at http://localhost:11434
- Model requirement: `ollama pull llama3.1:latest`

## What Sutra is / is not
- Is: a CLI-driven pipeline runner that enforces JSON contracts.
- Is: a local workflow for orchestrating Ollama-powered agents.
- Is not: an autonomous planner with self-directed agents.
- Is not: a hosted API service.

## Links
- GitHub: https://github.com/rajat4493/SutraFramework
- Issues: https://github.com/rajat4493/SutraFramework/issues
- Changelog: https://github.com/rajat4493/SutraFramework/blob/main/CHANGELOG.md
- PyPI: https://pypi.org/project/sutra-ai/0.1.0/
