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 model_response.ex
Raw

lib/beam_weaver/agent/model_response.ex

defmodule BeamWeaver.Agent.ModelResponse do
@moduledoc """
Normalized result from an agent model call.
"""
defstruct messages: [], structured_response: nil, tool_set: nil, usage: nil, commands: []
@type t :: %__MODULE__{
messages: [BeamWeaver.Core.Message.t()],
structured_response: term(),
tool_set: BeamWeaver.Agent.ToolSet.t() | nil,
usage: BeamWeaver.Agent.Usage.t() | nil,
commands: [BeamWeaver.Graph.Command.t()]
}
end