Skip to content
1 min read · 255 words

Interface: RawRetrievable

Plain input object supplied to Retrievable at construction time.

Remarks

Validated against rawRetrievableSchema before the Retrievable instance is created. Temporal fields accept any value that Luxon can parse — ISO strings, Unix timestamps, Date objects, or existing DateTime instances.

Properties

| Property | Type | Description | | ------------------------------------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------- | ----- | ---- | | content | string | Tokenizable | The retrieved content as a plain string or an existing @nhtio/adk!Tokenizable instance. | | createdAt | string | number | Date | DateTime<boolean> | When the source record was created (publication date, upload date, etc.). | | id | string | Stable unique identifier for this retrieved record. Used as the closing-tag nonce in the rendered envelope, so it must be unguessable from the payload. | | kind? | string | Optional semantic label: 'policy' | 'reference' | 'web-page' | 'pdf' | etc. | | score? | number | Optional relevance / similarity score in [0, 1] from the retrieval middleware. | | source? | string | Optional provenance string: URL, document path, knowledge-base id, etc. | | trustTier | RetrievableTrustTier | Trust tier declared by the retrieval middleware at construction time. Required — there is NO default. The decision must be conscious. See RetrievableTrustTier. | | updatedAt | string | number | Date | DateTime<boolean> | When the source record was last modified. |