Skip to content

Type Alias: SortLabelInput

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SortLabelInput

SortLabelInput = string | { language?: string | null; value: string; }

Defined in: src/types/sorts.ts:488

A label as a request may give it: a SortLabel, or a bare string for a label with no language.

The SDK always sends the object form: a bare string becomes {"value": "...", "language": null} on the wire. The engine refuses a language that is not a well-formed BCP 47 tag with 400.