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
beam_weaver lib beam_weaver graph edge_spec.ex
Raw

lib/beam_weaver/graph/edge_spec.ex

defmodule BeamWeaver.Graph.EdgeSpec do
@moduledoc false
defstruct [:source, :target, metadata: %{}]
end
defmodule BeamWeaver.Graph.GuardedEdgeSpec do
@moduledoc false
defstruct [
:id,
:source,
:target,
:match,
max_runs: nil,
default?: false,
metadata: %{}
]
end
defmodule BeamWeaver.Graph.BranchSpec do
@moduledoc false
defstruct [:source, :router, path_map: %{}, then: nil, metadata: %{}]
end
defmodule BeamWeaver.Graph.WaitingEdgeSpec do
@moduledoc false
defstruct [:id, :channel, upstream: [], target: nil, metadata: %{}]
end