Pixir.Tools.Registry (pixir v0.1.0)

Copy Markdown View Source

Compile-time map of tool name → module for the v0.1 built-ins (read, write, bash). The Executor resolves calls through fetch/1; the Provider advertises the catalogue via responses_specs/0.

Summary

Functions

Resolve a tool name to its module.

All registered tool modules.

All registered tool names.

Tool specs for the Responses API tools field.

Functions

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.