Skip to content

Interface: ExtractImageResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ExtractImageResponse

Defined in: src/types/image-extraction.ts:85

Response from vision-based image extraction.

entities: ImageExtractedEntityDto[]

Defined in: src/types/image-extraction.ts:87

Extracted entities (visual elements identified in the image).


optional error?: string | null

Defined in: src/types/image-extraction.ts:89

Error message if extraction failed.


optional originalFileId?: string | null

Defined in: src/types/image-extraction.ts:104

The retained original image’s id; absent for a preview request. The bytes are downloadable through GET /api/v1/sources/files/{id}/content.


relations: ImageExtractedRelationDto[]

Defined in: src/types/image-extraction.ts:91

Extracted relations (connections/arrows between entities).


stats: ImageExtractionStatsDto

Defined in: src/types/image-extraction.ts:93

Extraction statistics.


success: boolean

Defined in: src/types/image-extraction.ts:95

Whether the extraction was successful.


suggestedSorts: ImageSuggestedSortDto[]

Defined in: src/types/image-extraction.ts:97

Suggested sorts (new types discovered in the image).


termIds: string[]

Defined in: src/types/image-extraction.ts:99

IDs of persisted PsiTerms (empty if persist=false).