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/provider/stream_translator.ex
defmodule BeamWeaver.Provider.StreamTranslator do
@moduledoc """
Behaviour for converting provider stream events into BeamWeaver stream items.
"""
alias BeamWeaver.Core.Error
@callback decode_events([map()], keyword()) :: [term()]
@callback final_message([term()], keyword()) :: {:ok, term()} | {:error, Error.t()}
@optional_callbacks final_message: 2
end