Skip to content

Interface: EncodeClipResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / EncodeClipResponse

Defined in: src/types/vision.ts:87

Response of POST /api/v1/vision/encode-clip.

clipId: string

Defined in: src/types/vision.ts:89

Caller-chosen clip id, echoed.


disposition: string

Defined in: src/types/vision.ts:95

How to read the predictions. The engine always sends "advisory_prediction": predictions stay advisory, also when every declared OSF check passes.


embeddingDim: number

Defined in: src/types/vision.ts:97

Dimensionality of the produced embedding.


encodeElapsedMs: number

Defined in: src/types/vision.ts:99

Wall-clock time spent encoding, in milliseconds.


frames: FrameSummary[]

Defined in: src/types/vision.ts:101

Per-frame prediction summaries, in frame order.


optional headManifestSha256?: string | null

Defined in: src/types/vision.ts:113

SHA-256 of the head manifest that produced the predictions.


optional headWeightsSha256?: string | null

Defined in: src/types/vision.ts:115

SHA-256 of the head weights that produced the predictions.


modelId: string

Defined in: src/types/vision.ts:103

Model id that produced the embedding.


optional modelVersion?: string | null

Defined in: src/types/vision.ts:105

Model version, when reported. Optional.


numInputFrames: number

Defined in: src/types/vision.ts:107

Number of input frames actually consumed.


optional originalFrameCount?: number | null

Defined in: src/types/vision.ts:109

Frame count of the decoded source video, when known.


paddedFrameIndices: number[]

Defined in: src/types/vision.ts:111

Frame indices that were padded to reach the required count.


optional receiptPayloadSha256?: string | null

Defined in: src/types/vision.ts:117

SHA-256 of the receipt payload the engine stored.


optional receiptTermId?: string | null

Defined in: src/types/vision.ts:119

Id of the receipt term the engine wrote to the tenant’s store.


optional sourceByteCount?: number | null

Defined in: src/types/vision.ts:121

Byte count of the decoded source video.


optional sourceSha256?: string | null

Defined in: src/types/vision.ts:123

SHA-256 of the decoded source video.


optional temporalPatchSize?: number | null

Defined in: src/types/vision.ts:125

Source frames per temporal token (the encoder’s temporal patch size).


timingsUs: Record<string, number>

Defined in: src/types/vision.ts:132

Stage wall-clock times in microseconds, keyed by stage. The engine sends encoder_round_trip, head, validation_and_osf, processing and receipt_write_readback; receipt I/O is timed apart from processing. The keys are data and reach the caller unchanged.


totalObjects: number

Defined in: src/types/vision.ts:134

Total objects predicted across all frames.


totalResiduatedFeatures: number

Defined in: src/types/vision.ts:136

Total residuated features across all frames (the headline “honest uncertainty” number).