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.0.tar.gz (100.8 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.0-py3-none-any.whl (118.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trellis_pipelines-0.1.0.tar.gz
  • Upload date:
  • Size: 100.8 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.0.tar.gz
Algorithm Hash digest
SHA256 b5020e05b8f385801e9035237fe7bc42ca171e7310f3b407ebaa97ab3e6f67fe
MD5 b95b59c2619f3e5c0b5f07b05a04aa51
BLAKE2b-256 83b7f51c99e1256893548b24459880661ae9c2dc28382968bf702c5c412a199b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trellis_pipelines-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3be756adb563e75e9a31dbbe7a8fd28dcea0fa8b254ee321a7dbc10d414de80
MD5 93a6f2536b383ae208a8d0518d3d61f2
BLAKE2b-256 4a0315b3244e90662db8518b50cbe82d2af14642e853249ee1a871aa61d435c8

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