Pixir.Tools.Registry (pixir v0.1.17)

Copy Markdown View Source

Compile-time registry mapping tool names to modules. The registry map is the source of truth for the available tool catalogue. The Executor resolves calls through fetch/1; Providers advertise the catalogue through the tool-spec functions. Provider-hosted tools (such as web search) execute on the Provider side and are not Registry entries.

Summary

Functions

Tool specs for Anthropic Messages API tools field.

Resolve a tool name to its module.

All registered tool modules.

All registered tool names.

Tool specs for the Responses API tools field.

Functions

anthropic_specs()

@spec anthropic_specs() :: [map()]

Tool specs for Anthropic Messages API tools field.

fetch(name)

@spec fetch(String.t()) :: {:ok, module()} | {:error, map()}

Resolve a tool name to its module.

modules()

@spec modules() :: [module()]

All registered tool modules.

names()

@spec names() :: [String.t()]

All registered tool names.

responses_specs()

@spec responses_specs() :: [map()]

Tool specs for the Responses API tools field.