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
lib/beam_weaver/runnable/each.ex
defmodule BeamWeaver.Runnable.Each do
@moduledoc false
@behaviour BeamWeaver.Runnable
alias BeamWeaver.Runnable
alias BeamWeaver.Runnable.Map, as: MapRunnable
defstruct [:runnable]
@impl true
def invoke(%__MODULE__{runnable: runnable}, input, opts) do
MapRunnable.invoke(%MapRunnable{runnable: runnable}, List.wrap(input), opts)
end
@impl true
def stream(%__MODULE__{runnable: runnable}, input, opts) do
Runnable.stream(%MapRunnable{runnable: runnable}, List.wrap(input), opts)
end
end