Skip to content
mercury framework
GitHub

ExecutableTool

ExecutableTool = Tool & object

Defined in: types/plugin-types/index.ts:50

A tool built with ai‘s tool() and an execute: what the core’s and the plugins’ tool factories return. Spelled out so their declarations name it instead of ai’s internal types, which a published package can’t reference.

execute: NonNullable<Tool["execute"]>