Bluestep JS Documentation
    Preparing search index...

    Type Alias JSONSchema

    JSONSchema:
        | { description?: string; enum?: readonly string[]; type: "string" }
        | {
            description?: string;
            enum?: readonly number[];
            type: "number" | "integer";
        }
        | { description?: string; type: "boolean" }
        | { description?: string; type: "null" }
        | { description?: string; items: JSONSchema; type: "array" }
        | {
            description?: string;
            properties: Readonly<Record<string, JSONSchema>>;
            required?: readonly string[];
            type: "object";
        }
        | { const: string
        | number
        | boolean; description?: string }
        | { description?: string; enum: readonly (string | number | boolean)[] }

    A JSON Schema literal recognized by B.ai.tool.custom()'s FromSchema mapper. Covers the subset BSJS supports for tool input schemas.