Variable conversationHistorySchemaConst

conversationHistorySchema: ZodObject<{
    messages: ZodOptional<ZodArray<ZodObject<{
        content: ZodNullable<ZodString>;
        flags: ZodOptional<ZodUnion<[ZodArray<ZodString, "many">, ZodNull]>>;
        function_call: ZodOptional<ZodObject<{
            arguments: ZodRecord<ZodString, ZodAny>;
            name: ZodString;
        }, "strip", ZodTypeAny, {
            arguments: Record<string, any>;
            name: string;
        }, {
            arguments: Record<string, any>;
            name: string;
        }>>;
        id: ZodOptional<ZodString>;
        model: ZodOptional<ZodString>;
        name: ZodOptional<ZodString>;
        role: ZodUnion<[ZodLiteral<"user">, ZodLiteral<"assistant">, ZodLiteral<"system">, ZodLiteral<"function">]>;
    }, "strip", ZodTypeAny, {
        content: null | string;
        flags?: null | string[];
        function_call?: { name: string; arguments: Record<string, any>; };
        id?: string;
        model?: string;
        name?: string;
        role: "function" | "user" | "assistant" | "system";
    }, {
        content: null | string;
        flags?: null | string[];
        function_call?: { name: string; arguments: Record<string, any>; };
        id?: string;
        model?: string;
        name?: string;
        role: "function" | "user" | "assistant" | "system";
    }>, "many">>;
}, "strip", ZodTypeAny, {
    messages?: ({ role: "function" | "user" | "assistant" | "system"; content: string | null; id?: string | undefined; name?: string | undefined; function_call?: { name: string; arguments: Record<string, any>; } | undefined; model?: string | undefined; flags?: string[] | ... 1 more ... | undefined; })[];
}, {
    messages?: ({ role: "function" | "user" | "assistant" | "system"; content: string | null; id?: string | undefined; name?: string | undefined; function_call?: { name: string; arguments: Record<string, any>; } | undefined; model?: string | undefined; flags?: string[] | ... 1 more ... | undefined; })[];
}> = ...

Type declaration

  • messages: ZodOptional<ZodArray<ZodObject<{
        content: ZodNullable<ZodString>;
        flags: ZodOptional<ZodUnion<[ZodArray<ZodString, "many">, ZodNull]>>;
        function_call: ZodOptional<ZodObject<{
            arguments: ZodRecord<ZodString, ZodAny>;
            name: ZodString;
        }, "strip", ZodTypeAny, {
            arguments: Record<string, any>;
            name: string;
        }, {
            arguments: Record<string, any>;
            name: string;
        }>>;
        id: ZodOptional<ZodString>;
        model: ZodOptional<ZodString>;
        name: ZodOptional<ZodString>;
        role: ZodUnion<[ZodLiteral<"user">, ZodLiteral<"assistant">, ZodLiteral<"system">, ZodLiteral<"function">]>;
    }, "strip", ZodTypeAny, {
        content: null | string;
        flags?: null | string[];
        function_call?: { name: string; arguments: Record<string, any>; };
        id?: string;
        model?: string;
        name?: string;
        role: "function" | "user" | "assistant" | "system";
    }, {
        content: null | string;
        flags?: null | string[];
        function_call?: { name: string; arguments: Record<string, any>; };
        id?: string;
        model?: string;
        name?: string;
        role: "function" | "user" | "assistant" | "system";
    }>, "many">>

Type declaration

  • Optional messages?: ({ role: "function" | "user" | "assistant" | "system"; content: string | null; id?: string | undefined; name?: string | undefined; function_call?: { name: string; arguments: Record<string, any>; } | undefined; model?: string | undefined; flags?: string[] | ... 1 more ... | undefined; })[]

Type declaration

  • Optional messages?: ({ role: "function" | "user" | "assistant" | "system"; content: string | null; id?: string | undefined; name?: string | undefined; function_call?: { name: string; arguments: Record<string, any>; } | undefined; model?: string | undefined; flags?: string[] | ... 1 more ... | undefined; })[]

Generated using TypeDoc