Interface ModelReference<CustomOptions>

interface ModelReference<CustomOptions extends ZodTypeAny> {
    config?: TypeOf<CustomOptions>;
    configSchema?: CustomOptions;
    info?: {
        label?: string;
        stage?: "stable" | "unstable" | "featured" | "legacy" | "deprecated";
        supports?: {
            constrained?: boolean;
            contentType?: string[];
            context?: boolean;
            media?: boolean;
            multiturn?: boolean;
            output?: string[];
            systemRole?: boolean;
            toolChoice?: boolean;
            tools?: boolean;
        };
        versions?: string[];
    };
    name: string;
    version?: string;
    withConfig(cfg: TypeOf<CustomOptions>): ModelReference<CustomOptions>;
    withVersion(version: string): ModelReference<CustomOptions>;
}

Type Parameters

Properties

configSchema?: CustomOptions
info?: {
    label?: string;
    stage?: "stable" | "unstable" | "featured" | "legacy" | "deprecated";
    supports?: {
        constrained?: boolean;
        contentType?: string[];
        context?: boolean;
        media?: boolean;
        multiturn?: boolean;
        output?: string[];
        systemRole?: boolean;
        toolChoice?: boolean;
        tools?: boolean;
    };
    versions?: string[];
}
name: string
version?: string

Methods