ToolRegistry class
A registry of all available Tool instances.
Tools are registered once and looked up by name at execution time.
Constructors
- ToolRegistry({ConsciousnessLogger? logger})
Properties
Methods
-
buildCatalogue(
) → String - Builds a compact tool catalogue for the system prompt.
-
find(
String name) → Tool? -
Returns the Tool with
name, or null if not found. -
has(
String name) → bool -
Whether
nameis registered. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Tool tool) → void -
Registers
tool, overwriting any existing registration with the same name. -
registerAll(
Iterable< Tool> tools) → void -
Registers multiple
toolsat once. -
toString(
) → String -
A string representation of this object.
override
-
unregister(
String name) → void -
Removes a tool by
name.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited