Skip to main content

Local-first execution runtime for deterministic LLM workflows with Ollama.

Project description

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

pip install sutra-ai

Examples

Hello world

pip install -e .
sutra run examples/hello_world/pipeline.py --text "Hello example"

Support triage

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
{
  "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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sutra_ai-0.1.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sutra_ai-0.1.2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file sutra_ai-0.1.2.tar.gz.

File metadata

  • Download URL: sutra_ai-0.1.2.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for sutra_ai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5bd4fd4e85a7251a75a1c7465da9cbf1823c1c3ad68e8afe7813ed43abe4c2e5
MD5 28959955b0a4837219333966b0c8525a
BLAKE2b-256 51ec6b227f20f21a21612d81f9824bebe8bde8ee19a59a50cd398b86f2064be3

See more details on using hashes here.

File details

Details for the file sutra_ai-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sutra_ai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for sutra_ai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ea587aed928fd6ae1af2ba9fb27b89802612395f9688d8f5c28e0f0a2fb9290
MD5 2c6fc7979b9d447f2de33bc418d1f81f
BLAKE2b-256 b203ec67d94c1492e40e6706072726b198f601f605fb1c3ffdbd269743f45542

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page