ACP v2 (Preview) TypeScript SDK — EXPERIMENTAL - v2.12.1
    Preparing search index...

    Type Alias StringPropertySchemaExperimental

    Schema for string properties in an elicitation form.

    When enum or oneOf is set, this represents a single-select enum with "type": "string".

    type StringPropertySchema = {
        title?: string | null;
        description?: string | null;
        minLength?: number | null;
        maxLength?: number | null;
        format?: StringFormat | null;
        default?: string | null;
        enum?: string[] | null;
        oneOf?: EnumOption[] | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    title?: string | null

    Optional plain-text label for this field in the form.

    Optional. Omitted and null are equivalent and mean no title is provided.

    description?: string | null

    Plain-text help for the user filling out this field.

    Optional. Omitted and null are equivalent and mean no description is provided.

    minLength?: number | null

    Minimum string length.

    Optional. Omitted and null are equivalent and mean there is no minimum length constraint.

    maxLength?: number | null

    Maximum string length.

    Optional. Omitted and null are equivalent and mean there is no maximum length constraint.

    format?: StringFormat | null

    String format.

    Optional. Omitted and null are equivalent and mean there is no format constraint.

    default?: string | null

    Default value.

    Optional. Omitted and null are equivalent and mean no default value is provided.

    enum?: string[] | null

    Enum values for untitled single-select enums. Must contain at least one value when present. Optional. Omitted and null are equivalent and mean no untitled single-select choices are declared by enum.

    oneOf?: EnumOption[] | null

    Titled enum options for titled single-select enums. Must contain at least one option when present. Optional. Omitted and null are equivalent and mean no titled single-select choices are declared by oneOf.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility