ISPO SDK
    Preparing search index...

    Interface PromptMessage

    Markdown
    interface PromptMessage {
        id: string;
        kind: string;
        line: number;
        rawType?: string;
        role: PromptMessageRole;
        text: string;
        timestamp?: string;
        title?: string;
        toolCalls?: PromptToolCall[];
        toolResult?: PromptToolResult;
    }
    Index
    id: string
    kind: string
    line: number
    rawType?: string
    text: string
    timestamp?: string
    title?: string
    toolCalls?: PromptToolCall[]

    Tool invocations carried by this message, in the order the provider emitted them. Present on assistant turns that issue tool calls (a single turn may issue several) and on stores that record calls as their own row.

    toolResult?: PromptToolResult

    Present on tool-result messages. See PromptToolResult.isError.