Member Junction
    Preparing search index...

    Interface MJActionParamEntity_IActionParamValueSchema

    JSON Schema fragment for one Action parameter's value.

    Stored in the ValueSchema column of MJ: Action Params. CodeGen emits a typed ValueSchemaObject accessor that returns MJActionParamEntity_IActionParamValueSchema | null.

    When set, the native tool builder declares this schema to the model in place of the coarse ValueType mapping, and argument coercion follows it before the Action runs. For an IsArray param it describes ONE element; the builder wraps it in { type: 'array', items: … }.

    Deliberately limited to the subset every tool-calling provider accepts (type, description, enum, items, properties, required). Keywords outside it (oneOf, $ref, format, additionalProperties, …) are rejected or handled differently from one provider to the next, so the interface does not offer them.

    { "type": "string", "enum": ["asc", "desc"] }
    
    { "type": "object", "properties": { "TopCount": { "type": "integer" } }, "required": ["TopCount"] }
    
    interface MJActionParamEntity_IActionParamValueSchema {
        description?: string;
        enum?: (string | number | boolean)[];
        items?: MJActionParamEntity_IActionParamValueSchema;
        properties?: Record<string, MJActionParamEntity_IActionParamValueSchema>;
        required?: string[];
        type?:
            | "string"
            | "number"
            | "boolean"
            | "object"
            | "integer"
            | "null"
            | "array"
            | (
                | "string"
                | "number"
                | "boolean"
                | "object"
                | "integer"
                | "null"
                | "array"
            )[];
    }
    Index

    Properties

    description?: string

    What the value means. On the top-level schema the param's own Description is used when this is absent.

    enum?: (string | number | boolean)[]

    The only values allowed.

    For type: 'array': the schema of each element.

    properties?: Record<string, MJActionParamEntity_IActionParamValueSchema>

    For type: 'object': the schema of each named property.

    required?: string[]

    For type: 'object': the property names that must be present.

    type?:
        | "string"
        | "number"
        | "boolean"
        | "object"
        | "integer"
        | "null"
        | "array"
        | (
            | "string"
            | "number"
            | "boolean"
            | "object"
            | "integer"
            | "null"
            | "array"
        )[]

    The JSON type of the value. An array of types is a union; prefer a single type, since OpenAPI 3.0 (which Gemini's function declarations follow) has no union type.