TomToolsApi class abstract

Scripting access to the Tom extension's LLM tool registry.

All methods throw StateError when the adapter has not been set.

Constructors

TomToolsApi()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getToolsJson() → Future<List<ToolDefinitionJson>>
Generate the Anthropic-shaped tools JSON for the active profile.
invokeTool(String name, [Map<String, dynamic> arguments = const {}]) → Future<String>
Universally invoke a registered tool by name.
listAllowedToolNames() → Future<List<String>>
The names of the tools the active profile permits — a cheap convenience for pre-validating a name before calling invokeTool.
setAdapter(VSCodeAdapter adapter) → void
Set the adapter for API calls.