OpenRouter TypeScript SDK - v1.0.6
    Preparing search index...

    Interface ResponseFormat

    Structured response format

    interface ResponseFormat {
        type: "text" | "json_object" | "json_schema";
        json_schema?: {
            name: string;
            strict?: boolean;
            schema: Record<string, any>;
        };
    }
    Index

    Properties

    Properties

    type: "text" | "json_object" | "json_schema"
    json_schema?: { name: string; strict?: boolean; schema: Record<string, any> }