Skip to main content

Modular agentic pipeline system for document and data workflows

Project description

Trellis

An agentic solution for pipeline planning and execution within controlled environments.

Quick Start

Installation

pip install -e .

Usage

CLI

# Validate a pipeline
trellis validate pipelines/example.yaml

# Run a pipeline
trellis run pipelines/example.yaml

# Generate a plan from a goal
trellis plan "Extract and analyze market data"

# Generate a pipeline from a goal
trellis generate "Extract and analyze market data" -o output.yaml

API

# Start the API server
python -m trellis_api.main

# Create a pipeline
curl -X POST http://localhost:8000/pipelines \
  -H "Content-Type: application/json" \
  -d '{
    "id": "example_pipeline",
    "goal": "Process data",
    "tasks": []
  }'

Python Library

from trellis.models.pipeline import Pipeline
from trellis.execution.dag import DAGExecutor

pipeline = Pipeline(
    id="my_pipeline",
    goal="Extract and process data",
    tasks=[]
)

executor = DAGExecutor()
results = executor.execute({})

Architecture

See docs/architecture.md for detailed architecture documentation.

Project Structure

trellis/
├── trellis/                    # Core library (shared)
│   ├── models/             # Pydantic DSL models
│   ├── validation/         # DAG and contract validation
│   ├── execution/          # Execution engine
│   └── tools/              # Tool protocol and implementations
├── trelis_api/             # FastAPI server
├── trelis_mcp/             # MCP server
├── trelis_cli/             # CLI interface
├── data/                   # Dataset generation
├── tests/                  # Test suite
├── docs/                   # Documentation
└── scripts/                # Utility scripts

Development

Testing

pytest tests/ -v

Linting

black .
isort .
mypy trellis/

Building

python -m build

License

See LICENSE file for details.

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

trellis_pipelines-0.1.1.tar.gz (100.9 kB view details)

Uploaded Source

Built Distribution

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

trellis_pipelines-0.1.1-py3-none-any.whl (118.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trellis_pipelines-0.1.1.tar.gz
  • Upload date:
  • Size: 100.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for trellis_pipelines-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fbc6efbe7296f6165517127aa04c77d5b088981dd1e9aed16cb548d4222c6a21
MD5 967e942100e9d1b253de55174aaec010
BLAKE2b-256 c1e4f41e6ed016865181286f49eb347c6043d1b0f57ccec1029b85b6df7b1fab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trellis_pipelines-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b1caf7820246d26ebd4e7c1a8160ffdad6490d95b7970ee242c86a1bb053855
MD5 c4a952686f165dd92a4ee622a9ca384f
BLAKE2b-256 bcc9a5cd2970c6bd2f10ef96ab8a8f5f9f381ef58ecad64541b01b7ee7951741

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