Class: SkillBench::Tools::Registry
- Inherits:
-
Object
- Object
- SkillBench::Tools::Registry
- Defined in:
- lib/skill_bench/tools/registry.rb
Overview
Registry for all available tools, providing their definitions to the LLM.
Constant Summary collapse
- DEFINITIONS =
The static tool definitions sent to the LLM API. The tool schemas are constant JSON-schema specs (no per-call state or runtime config), so the array and its nested hashes are built once and deep-frozen for reuse across every ReAct step instead of being reallocated on each call.
deep_freeze( [ ReadFile.definition, WriteFile.definition, RunCommand.definition ] )
Class Method Summary collapse
-
.definitions ⇒ Array<Hash>
Returns the memoized, frozen array of tool definitions for the LLM API.
Class Method Details
.definitions ⇒ Array<Hash>
Returns the memoized, frozen array of tool definitions for the LLM API.
44 45 46 |
# File 'lib/skill_bench/tools/registry.rb', line 44 def self.definitions DEFINITIONS end |