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.1.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.1-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sutra_ai-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b13e09e2f761ac6dfaf0026ef929c0d114ebab6f4bbd3dc2ad6ae224e9b03f4a
MD5 fec90378e7cab5919ca30cdd755be7e8
BLAKE2b-256 cde1f36840ab93735a81d5cf6093c833a8c7a641381f176cee405caeeabb8449

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sutra_ai-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c4230596de29f9ae575d01873b21e8ff6b8d4e0e13b0a5dd87608ca5909657c
MD5 e0e6b9b4cc816bc66c140936936c7110
BLAKE2b-256 5f1ed0ad15cdb1f246dc4caa7eaeab2433a8bdb3f977a166db676e20b39253a3

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