Skip to content

AIDK API Reference / aidk/tool / isExecutableTool

Function: isExecutableTool() ​

ts
function isExecutableTool(value: any): value is ExecutableTool<(input: any) => ContentBlock[] | Promise<ContentBlock[]>>;

Defined in: packages/core/src/tool/tool.ts:589

Check if value implements ExecutableTool interface.

Parameters ​

ParameterType
valueany

Returns ​

value is ExecutableTool<(input: any) => ContentBlock[] | Promise&lt;ContentBlock[]&gt;>

Released under the MIT License.