Edgewise API
    Preparing search index...

    Interface ChatMessage

    interface ChatMessage {
        content: string | Part[];
        id: string;
        name?: string;
        role: "system" | "user" | "assistant" | "tool";
        toolCallId?: string;
        toolCalls?: { id: string; input: unknown; name: string }[];
    }

    Hierarchy (View Summary)

    Index
    content: string | Part[]
    id: string
    name?: string
    role: "system" | "user" | "assistant" | "tool"
    toolCallId?: string

    For role 'tool': which call this result answers.

    toolCalls?: { id: string; input: unknown; name: string }[]

    Tool calls made by the assistant in this message.