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 agent extended_model_response.ex
Raw

lib/beam_weaver/agent/extended_model_response.ex

defmodule BeamWeaver.Agent.ExtendedModelResponse do
@moduledoc """
Model response plus an optional state command returned by wrap-model middleware.
"""
defstruct [:model_response, :command]
@type t :: %__MODULE__{
model_response: BeamWeaver.Agent.ModelResponse.t(),
command: BeamWeaver.Graph.Command.t() | nil
}
end