Interface GMIOutput

Represents the complete, non-chunked output of a GMI turn or significant processing step. This is typically the TReturn type of an AsyncGenerator yielding GMIOutputChunk.

Export

GMIOutput

interface GMIOutput {
    isFinal: boolean;
    responseText?: null | string;
    toolCalls?: ToolCallRequest[];
    uiCommands?: UICommand[];
    audioOutput?: AudioOutputConfig;
    imageOutput?: ImageOutputConfig;
    usage?: CostAggregator;
    reasoningTrace?: ReasoningTraceEntry[];
    error?: {
        code: string;
        message: string;
        details?: any;
    };
}

Properties

isFinal: boolean
responseText?: null | string
toolCalls?: ToolCallRequest[]
uiCommands?: UICommand[]
audioOutput?: AudioOutputConfig
imageOutput?: ImageOutputConfig
reasoningTrace?: ReasoningTraceEntry[]
error?: {
    code: string;
    message: string;
    details?: any;
}

Type declaration

  • code: string
  • message: string
  • Optional details?: any