@archastro/sdk
    Preparing search index...

    Interface AIToolResult

    The result of executing a tool call, submitted back to the model as a tool-role message. Mirrors the OpenAI tool-result object format.

    interface AIToolResult {
        content?: string;
        id: string;
        name: string;
        resolution?: unknown;
    }
    Index

    Properties

    content?: string

    Plain-text output produced by the tool execution. null when the result is expressed entirely through resolution.

    id: string

    ID of the tool call this result satisfies. Must match the id from the corresponding AIToolCall.

    name: string

    Name of the tool or function that was executed, e.g. "web_search". Must match the name from the corresponding AIToolCall.

    resolution?: unknown

    Structured result data from the tool execution. Shape varies by tool. null when the result is expressed as plain text in content.