Skip to content

toolKindFor

toolKindFor(name): ToolKind

Defined in: packages/agent/src/modules/acp/acpToolCalls.ts:58

The ACP tool kind for a gth tool name; other for anything not built in.

Typed against v1’s ToolKind, which is the closed union of the ten defined kinds; v2 widens the same union with a catch-all for future values. Typing against the stricter one is what lets a single function serve both — a v1 kind is always a valid v2 kind, and the reverse is not true.

string

ToolKind