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/graph/node.ex
defmodule BeamWeaver.Graph.Node do
@moduledoc """
Behaviour for module-backed graph nodes.
"""
@callback invoke(map(), BeamWeaver.Graph.Runtime.t()) :: term()
@callback input_schema(term()) :: map() | nil
@callback output_schema(term()) :: map() | nil
@callback destinations(term()) :: [atom() | String.t()]
@callback metadata(term()) :: map()
@optional_callbacks input_schema: 1, output_schema: 1, destinations: 1, metadata: 1
end