Skip to content

Type Alias: DocumentSource

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DocumentSource

DocumentSource = { stored: { id: string; }; } | { base64: { data: string; filename: string; }; } | { url: string; }

Defined in: src/types/ingestion.ts:390

Source of the document to ingest.

Externally tagged on the wire: a base64-encoded document with its filename ({"base64": {...}}), a URL to download from ({"url": "..."}), or a retained original of this tenant ({"stored": {"id": "<uuid>"}}, the originalFileId an earlier ingest reported).