Packages
Elixir-native LangChain, LangGraph, and DeepAgents for traceable LLM apps: OTP workflows, tools, memory, human-in-the-loop, streaming, custom clients/adapters, minimal deps, and WeaveScope tracing.
Current section
Files
Jump to
Current section
Files
examples/basic_graph.exs
defmodule BeamWeaver.Examples.BasicGraph do
use BeamWeaver.Agent
graph do
node(:greet, fn state -> %{answer: "hello #{state.name}"} end)
edge(start(), :greet)
edge(:greet, finish())
end
end
{:ok, %{answer: answer}} = BeamWeaver.Examples.BasicGraph.invoke(%{name: "BeamWeaver"})
IO.puts(answer)