Creating Plot Twists
    Preparing search index...

    Interface ToolResultPart

    Tool result content part of a prompt. It contains the result of the tool call with the matching ID.

    interface ToolResultPart {
        type: "tool-result";
        toolCallId: string;
        toolName: string;
        output:
            | { type: "text"; value: string }
            | { type: "json"; value: JSONValue }
            | { type: "error-text"; value: string }
            | { type: "error-json"; value: JSONValue }
            | {
                type: "content";
                value: (
                    | { type: "text"; text: string }
                    | { type: "media"; data: string; mediaType: string }
                )[];
            };
    }
    Index

    Properties

    type: "tool-result"
    toolCallId: string

    ID of the tool call that this result is associated with.

    toolName: string

    Name of the tool that generated this result.

    output:
        | { type: "text"; value: string }
        | { type: "json"; value: JSONValue }
        | { type: "error-text"; value: string }
        | { type: "error-json"; value: JSONValue }
        | {
            type: "content";
            value: (
                | { type: "text"; text: string }
                | { type: "media"; data: string; mediaType: string }
            )[];
        }

    Result of the tool call. This is a JSON-serializable object.