ART Framework API Docs
    Preparing search index...

    Variable ArtStandardPromptSchemaConst

    ArtStandardPromptSchema: ZodArray<
        ZodEffects<
            ZodObject<
                {
                    content: ZodUnion<[ZodString, ZodRecord<ZodString, ZodAny>, ZodNull]>;
                    name: ZodOptional<ZodString>;
                    role: ZodType<
                        ArtStandardMessageRole,
                        ZodTypeDef,
                        ArtStandardMessageRole,
                    >;
                    tool_call_id: ZodOptional<ZodString>;
                    tool_calls: ZodOptional<
                        ZodArray<
                            ZodObject<
                                {
                                    function: ZodObject<
                                        { arguments: ZodString; name: ZodString },
                                        "strip",
                                        ZodTypeAny,
                                        { arguments: string; name: string },
                                        { arguments: string; name: string },
                                    >;
                                    id: ZodString;
                                    type: ZodLiteral<"function">;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    function: { arguments: string; name: string };
                                    id: string;
                                    type: "function";
                                },
                                {
                                    function: { arguments: string; name: string };
                                    id: string;
                                    type: "function";
                                },
                            >,
                            "many",
                        >,
                    >;
                },
                "strict",
                ZodTypeAny,
                {
                    content: null
                    | string
                    | Record<string, any>;
                    name?: string;
                    role: ArtStandardMessageRole;
                    tool_call_id?: string;
                    tool_calls?: {
                        function: { arguments: string; name: string };
                        id: string;
                        type: "function";
                    }[];
                },
                {
                    content: null
                    | string
                    | Record<string, any>;
                    name?: string;
                    role: ArtStandardMessageRole;
                    tool_call_id?: string;
                    tool_calls?: {
                        function: { arguments: string; name: string };
                        id: string;
                        type: "function";
                    }[];
                },
            >,
            {
                content: null
                | string
                | Record<string, any>;
                name?: string;
                role: ArtStandardMessageRole;
                tool_call_id?: string;
                tool_calls?: {
                    function: { arguments: string; name: string };
                    id: string;
                    type: "function";
                }[];
            },
            {
                content: null
                | string
                | Record<string, any>;
                name?: string;
                role: ArtStandardMessageRole;
                tool_call_id?: string;
                tool_calls?: {
                    function: { arguments: string; name: string };
                    id: string;
                    type: "function";
                }[];
            },
        >,
        "many",
    > = ...

    Zod schema for validating an entire ArtStandardPrompt (an array of messages).

    This is a straightforward array schema that applies the ArtStandardMessageSchema to each element, ensuring that every message in the prompt conforms to the required structure.