BeamWeaver
Build agents and durable workflows inside an Elixir application. Define tools as modules, give a model a bounded set of actions, and inspect what it did. Use graphs when your application should choose the steps explicitly.
You need basic Elixir and Mix knowledge. No prior agent-framework experience is assumed. These guides target 1.0.0; check the release status before installing from Hex.
Start with a working application
-
Install and configure a Mix application and provider key.
-
Run your first agent against OpenAI or Google.
-
Build a support agent with an order tool and conversation history.
-
Read How BeamWeaver Works to connect the runtime concepts.
Examples say where code belongs and what to observe. Live answers can vary in wording; the guides check facts, tool results and state where those matter. The testing guide introduces scripted models for application tests.
Learn the DSLs
| You are defining | Guide |
|---|---|
| Model, instructions, tools and execution policy | Agent DSL |
| An action and its input contract | Tool DSL |
| A structured final answer | Schema DSL |
| Hooks around model and tool calls | Middleware DSL |
| Steps, branches, joins and state channels | Graph DSL and State |
Add the capability your task needs
| Need | Next guide |
|---|---|
| Trusted caller or tenant data | Runtime Context |
| Progress in a UI | Streaming |
| Conversation history | Conversation History |
| Facts shared across conversations | Long-Term Memory |
| Human approval before actions | Human Review |
| Files, planning, procedures and delegation | Compose a Deep Agent |
| Answers grounded in your documents | Retrieval |
| Explicit orchestration | Workflow Patterns |
| Recovery and persistent state | Checkpoints , Storage |
Ship and operate
Production Integration connects supervision, authorization, persistence, budgets and shutdown. Tracing explains local inspection and export to WeaveScope. Configuration separates application settings from model options and per-request data.
Use the provider reference for endpoint-specific features. The guides include complete code, options and result contracts inline. Runnable Examples provides a task index and optional downloadable scripts; you can follow the guides entirely on this documentation site.