Juncture
Typed state machine framework for building LLM agent applications in Rust. Juncture is a Rust implementation of LangGraph, providing the same programming model with Rust's type safety and performance.
Features
- Typed State Machine: Compile-time state validation with
#[derive(State)] - Pregel Execution Engine: Multi-core parallel execution with bounded concurrency
- Checkpoint Persistence: Save/restore execution state for time-travel debugging and crash recovery
- HITL Workflows: Human-in-the-loop interrupts with
interrupt!()macro - LLM Providers: Built-in support for Anthropic, OpenAI, and Ollama
- Tool Infrastructure: Tool trait, ToolNode, interceptors, and transformers
- Prebuilt Agents: ReAct agent pattern, MessagesState, agent factory with middleware
- Observability: OpenTelemetry integration and Langfuse-compatible telemetry
Quick Start
use *;
use ;
async
Feature Flags
| Feature | Description |
|---|---|
anthropic |
Anthropic Claude provider |
openai |
OpenAI GPT provider |
ollama |
Ollama local model provider |
structured-output |
Structured output via schemars JSON Schema |
store |
Cross-thread persistent key-value storage |
multi-thread |
Tokio multi-thread runtime (default) |
wasm |
WebAssembly support |
Examples
See the examples directory for complete working examples.
License
Licensed under Apache License, Version 2.0. See LICENSE for details.