Bluestep JS Documentation
    Preparing search index...

    Interface AiDeferredToolResult

    One entry of the array AiAgent.resume(results) takes: the answer to a tool call a hook deferred, named by the call's id from AiCallResult.deferred.

    interface AiDeferredToolResult {
        id: string;
        isError?: boolean;
        result: unknown;
    }
    Index
    id: string

    The id of the deferred call this answers, from AiCallResult.deferred.

    isError?: boolean

    Whether the call failed. The model is told so. Defaults to false.

    result: unknown

    What the tool returned, or what the reviewer decided it returns. Rendered as a tool's own result would be: a string as written, a number or boolean as its text, anything else as JSON.