# Swiftide

A Rust framework for building LLM applications, combining an agent harness for tool-using loops, typed task graphs for orchestration, and streaming, composable pipelines for retrieval-augmented generation.

Swiftide is an opinionated Rust framework for building LLM applications. It provides an agent harness for building agents that loop over model calls, tool calls, lifecycle hooks and stop conditions; typed task graphs for composing prompt steps, agents, command executors and custom Rust code, including parallel branches that join back into one output; and streaming, composable indexing and query pipelines for retrieval-augmented generation.

Agents can pause and resume for human approval, external callbacks or persisted state, and tools can come from local Rust functions, custom implementations, or MCP servers. Execution can be traced with the tracing crate, metrics, and Langfuse support. Default dependencies are kept light, and integrations such as OpenAI are added as optional features.

It is written in Rust, distributed as a crate, and includes API documentation and example projects.

Website: https://swiftide.rs
