Type Alias: TermInputDto
@kortexya/reasoninglayer / Homoiconic / TermInputDto
Type Alias: TermInputDto
TermInputDto =
TermInputRef|TermInputInline|TermInputInlineByName
Defined in: src/types/homoiconic.ts:43
Input type for specifying a term in inference requests.
A structural (untagged) union with three variants:
- Reference —
{ term_id: string }— reference an existing term by UUID - Inline by sort ID —
{ sort_id: string, features?: ... }— define inline by sort UUID - Inline by sort name —
{ sort_name: string, features?: ... }— define inline by sort name
Remarks
Serialization format: Untagged (structural discrimination).
The backend Rust type is TermInputDto in dto/homoiconic.rs with #[serde(untagged)].
The backend tries each variant in order: Reference, Inline, InlineByName.
Use TermInput.* builders to construct these values safely.