Class: ToolDefinition¶
Concrete ToolPort implementation, stored in the kernel's ToolRegistry.
Twin of the Py ToolDefinition dataclass — the callable init field
holds the framework-native invocable; getCallable() is the canonical
accessor (never serialize or wrap-replace it).
Implements¶
Constructors¶
Constructor¶
Parameters¶
| Parameter | Type |
|---|---|
init |
{ argsSchema?: Record\<string, unknown>; callable?: unknown; description?: string; group?: string | null; hitl?: boolean; name: string; scope?: string | null; source?: string; summary?: string; } |
init.argsSchema? |
Record\<string, unknown> |
init.callable? |
unknown |
init.description? |
string |
init.group? |
string | null |
init.hitl? |
boolean |
init.name |
string |
init.scope? |
string | null |
init.source? |
string |
init.summary? |
string |
Returns¶
ToolDefinition
Properties¶
argsSchema¶
JSON Schema of the tool's arguments (best-effort; may be {}).
Implementation of¶
description¶
Full docstring / long description.
Implementation of¶
group¶
Tool group (cognitive | manifest | code | docs | web | write | eval |
eval_lab | …). null = registered but not group-filterable (rare).
Implementation of¶
hitl¶
Write tool that needs a HumanInTheLoop interrupt at the root graph.
Implementation of¶
name¶
Implementation of¶
scope¶
Layer-policy hint — "tenant" respects tenant overlay, "global" doesn't. Reserved for future use.
Implementation of¶
source¶
Module file name that defined the tool (best-effort).
Implementation of¶
summary¶
First paragraph of the description.
Implementation of¶
Methods¶
getCallable()¶
Return the underlying invocable (framework-native tool or function).
Returns¶
unknown