Lightweight registry of agent tools keyed by name.
Summary
Functions
Builds a registry map from a tool list.
Fetches a tool by name.
Registers or replaces a tool in the registry.
Types
@type t() :: %{optional(String.t()) => AttractorEx.Agent.Tool.t()}
Functions
@spec from_tools([AttractorEx.Agent.Tool.t()]) :: t()
Builds a registry map from a tool list.
@spec get(t(), String.t()) :: AttractorEx.Agent.Tool.t() | nil
Fetches a tool by name.
@spec register(t(), AttractorEx.Agent.Tool.t()) :: t()
Registers or replaces a tool in the registry.