Skip to content

EffectTool

Type Parameter Default type

TInput

unknown

TOutput

unknown

description: string;

execute: (args, ctx?) => Promise<TOutput> | AsyncIterable<TOutput, any, any>;
Parameter Type

args

TInput

ctx?

ToolContext

Promise<TOutput> | AsyncIterable<TOutput, any, any>


optional input?: StandardSchemaV1<TInput, TInput>;

optional interim?: string;

optional interimAfterMs?: number;

optional interruptible?: boolean;

name: string;

optional needsApproval?: boolean;

optional output?: StandardSchemaV1<TOutput, TOutput>;

optional replay?: boolean;

When false, the durable journal always re-executes this tool instead of returning a cached step result — for observation/mutation tools (fs, shell) whose result must be fresh. Default true.


optional timeoutMs?: number;