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 indexing record.ex
Raw

lib/beam_weaver/indexing/record.ex

defmodule BeamWeaver.Indexing.Record do
@moduledoc """
Durable bookkeeping record for indexed documents.
"""
@enforce_keys [:id, :source_id, :hash]
defstruct [:id, :source_id, :hash, namespace: :default, metadata: %{}, updated_at: nil]
@type t :: %__MODULE__{
id: String.t(),
source_id: String.t(),
hash: String.t(),
namespace: term(),
metadata: map(),
updated_at: term()
}
end