Skip to content

wrapAiSdkTool

function wrapAiSdkTool(name, aiTool): AnyTool;

Adapt a third-party AI SDK tool into a durable Kuralle effect tool so its execute runs through the journal (exactly-once on replay). Throws on a schema-only tool (no execute) — use defineTool for those.

Parameter Type

name

string

aiTool

AiSdkToolLike

AnyTool