Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Periplon
A Rust SDK for building multi-agent AI workflows and automation.
Table of Contents
Overview
Periplon provides a powerful Rust interface for building and executing multi-agent AI workflows. It enables seamless orchestration of AI agents through a clean, type-safe API and a comprehensive DSL system for complex automation tasks.
Key Capabilities:
- 🦀 Type-Safe Rust SDK - Strong typing with compile-time guarantees
- 🔄 Multi-Agent Workflows - Orchestrate complex AI agent interactions
- 📝 Powerful DSL - YAML-based workflow definition language
- 🏗️ Hexagonal Architecture - Clean separation of concerns
- ⚡ Async I/O - Non-blocking operations throughout
- 🔌 Extensible - Plugin architecture with ports and adapters
Features
Rust SDK
- Hexagonal Architecture: Clean separation with ports and adapters pattern
- Type Safety: Strong Rust types with compile-time guarantees
- Async I/O: Non-blocking async/await using tokio
- Stream-Based: Efficient streaming without buffering
- Error Handling: Rich error types with context
- Testability: Mock adapters for isolated testing
DSL System
- Multi-Agent Workflows: Orchestrate complex AI agent interactions
- Natural Language Generation: Create workflows from plain English
- State Management: Checkpoint and resume execution
- Dependency Resolution: DAG-based task execution
- Variable System: Scoped variables with interpolation
- Loop Support: ForEach, While, RepeatUntil, Repeat patterns
- Validation: Comprehensive workflow validation
Installation
Add to your Cargo.toml:
[]
= "0.1.0"
= { = "1", = ["full"] }
= "0.3"
For detailed installation instructions, see Installation Guide.
Quick Start
Simple Query
use ;
use StreamExt;
async
Interactive Client
use ;
async
See the Quick Start Guide for more examples.
Tools
Executor CLI
A complete workflow orchestration platform with zero configuration:
- 🚀 Zero-Config Server: Start instantly with no database required
- 🎨 Embedded Web UI: Full Next.js interface built into the binary
- ⚡ Production Ready: API server and web interface in one executable
- 🔧 Developer Friendly: Hot reload, validation, natural language generation
# Build the CLI
# Start server with embedded web UI
# Access web UI at http://localhost:8080
Documentation: CLI Usage | Embedded Web UI
TUI (Terminal Interface)
Interactive terminal interface for workflow management:
- 📁 Workflow Browser: Browse and manage workflow files
- ✏️ Smart Editor: YAML editor with syntax highlighting
- 🤖 AI Generation: Create workflows from natural language
- 📊 Execution Monitor: Real-time progress tracking
- 💾 State Management: Save and resume executions
- ⌨️ Keyboard-Driven: Full keyboard navigation
# Build the TUI
# Launch TUI
# Launch with custom workflow directory
Documentation:
Documentation
Getting Started
- Installation Guide - Setup and requirements
- Quick Start Guide - Get up and running
- Configuration Guide - Agent options and settings
Core Concepts
- Architecture Guide - Hexagonal architecture overview
- Message Types - Message type reference
- Error Handling - Error types and patterns
- Testing Guide - Comprehensive testing (166+ tests)
DSL System
- DSL Overview - Introduction to the DSL
- Loop Patterns Guide - Comprehensive loop reference
- Loop Cookbook - 25 production-ready patterns
- Loop Tutorial - Step-by-step guide
- DSL Implementation - Technical details
- Natural Language Generation - NL workflow generation
- HTTP Collections - HTTP/HTTPS integration
- Security Audit - Safety analysis
API Reference
Examples
Run the included examples:
# Simple query
# Interactive client
# DSL executor
DSL Loop Examples
- ForEach Demo - Process collections
- While Demo - Polling pattern
- Polling Demo - API polling
- Parallel Demo - Concurrent execution
- HTTP Collection Demo - Fetch from APIs
- Checkpoint Demo - Resume capability
See examples/ for more examples.
Requirements
- Minimum CLI version: 2.0.0
- Rust: 1.70 or later
- Tokio runtime: Required for async operations
Testing
The SDK includes comprehensive test coverage with 166+ integration tests:
# Run all tests with server features
# Run specific test suite
# Run tests with output
Test Suites:
- Authentication & Authorization (26 tests)
- Queue Backend Operations (22 tests)
- Storage Backend Operations (21 tests)
- Schedule Management API (22 tests)
- Execution Management API (22 tests)
- WebSocket Streaming (21 tests)
- Workflow API Integration (32 tests)
See Testing Guide for comprehensive documentation and examples.
Contributing
Contributions are welcome! Please ensure:
- All tests pass:
cargo test --lib --tests --features server - Code is formatted:
cargo fmt - No clippy warnings:
cargo clippy - Documentation is updated
See CLAUDE.md for development guidelines.
License
MIT OR Apache-2.0
Resources
Built with ❤️ in Rust