Interface LanguageModelRequest

interface LanguageModelRequest {
    messages: LanguageModelRequestMessage[];
    response_format?: {
        type: "text";
    } | {
        type: "json_object";
    } | ResponseFormatJsonSchema;
    settings?: {
        [key: string]: unknown;
    };
    tools?: ToolRequest[];
}

Properties

response_format?: {
    type: "text";
} | {
    type: "json_object";
} | ResponseFormatJsonSchema

Type declaration

  • type: "text"

Type declaration

  • type: "json_object"
settings?: {
    [key: string]: unknown;
}

Type declaration

  • [key: string]: unknown
tools?: ToolRequest[]