Interface AIResponse<T>

Standard AI response wrapper

interface AIResponse<T> {
    context: AIContext;
    data: T;
    metadata: {
        cacheHit: boolean;
        latency: number;
        timestamp: string;
        upstreamUsed: string;
    };
}

Type Parameters

  • T = any

Properties

Properties

context: AIContext
data: T
metadata: {
    cacheHit: boolean;
    latency: number;
    timestamp: string;
    upstreamUsed: string;
}