class LittleGhost::ToolRegistry

ToolRegistry turns an agentโ€™s tool declarations into the exact set a model can call during one run. It validates names, binds run collaborators, and closes owned tool instances with the run.

binding = LittleGhost::Tool::Binding.new
registry = LittleGhost::ToolRegistry.new([HelpCenterLookupTool], binding:)
registry.names # => ["policy_lookup"]

Entries may be Tool instances, Tool subclasses, nested arrays, or provider classes that implement tools(binding). Names must be unique, contain only letters, numbers, underscores, or hyphens, and be at most 64 characters. Owned tools that implement close are closed once in reverse order.