Codex.Tools.Registry (Codex SDK v0.3.0)

View Source

ETS-backed registry that stores Codex tool definitions, tracks invocation telemetry, and provides lookup/invoke helpers used by the auto-run pipeline.

Summary

Functions

Removes the supplied tool handle from the registry.

Invokes a registered tool by name, normalising arguments and emitting telemetry around the attempt. Returns the tool's response or an error tuple.

Looks up a tool by name and returns its metadata and module.

Registers a tool by name, storing the implementing module and metadata in ETS. Returns a Codex.Tools.Handle for later deregistration.

Clears the registry, deleting the underlying ETS table.

Functions

deregister(handle)

Removes the supplied tool handle from the registry.

invoke(name, args, context)

Invokes a registered tool by name, normalising arguments and emitting telemetry around the attempt. Returns the tool's response or an error tuple.

lookup(name)

Looks up a tool by name and returns its metadata and module.

register(map)

Registers a tool by name, storing the implementing module and metadata in ETS. Returns a Codex.Tools.Handle for later deregistration.

reset!()

Clears the registry, deleting the underlying ETS table.