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

all → List<Tool>
All registered tools.
no setter
count → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
names → List<String>
All registered tool names.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 name is 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 tools at 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