Skip to content

Type Alias: TermInputDto

@kortexya/reasoninglayer


@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:

  1. Reference{ term_id: string } — reference an existing term by UUID
  2. Inline by sort ID{ sort_id: string, features?: ... } — define inline by sort UUID
  3. 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.