Edgewise API
    Preparing search index...

    Interface GenerateResult<T>

    interface GenerateResult<T = unknown> {
        finishReason: "length" | "stop" | "abort" | "tool-calls";
        info: RunInfo;
        language?: string;
        messages: Message[];
        object?: T;
        segments?: Segment[];
        text: string;
        toolCalls: ToolCall[];
        toolResults: ToolResult[];
        usage: Usage;
    }

    Type Parameters

    • T = unknown
    Index
    finishReason: "length" | "stop" | "abort" | "tool-calls"
    info: RunInfo

    Which model, device and dtype ran.

    language?: string
    messages: Message[]

    The conversation including this reply, ready to pass back as messages.

    object?: T
    segments?: Segment[]
    text: string
    toolCalls: ToolCall[]
    toolResults: ToolResult[]
    usage: Usage