Skip to content

Interface: BatchOperationResultDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BatchOperationResultDto

Defined in: src/types/batch.ts:66

What one slot of the batch produced.

Read BatchOperationResultDto.success before BatchOperationResultDto.data. A failed operation carries data undefined and error set; it does not fail the batch.

data is the payload the operation’s own route would have returned, in the engine’s snake_case wire form — this SDK does not transform it, because its shape depends on which operation produced it.

optional data?: unknown

Defined in: src/types/batch.ts:72

The operation-specific payload. Absent on failure.


durationMs: number

Defined in: src/types/batch.ts:76

How long this operation took, in milliseconds.


optional error?: string

Defined in: src/types/batch.ts:74

Why it failed. Absent on success.


index: number

Defined in: src/types/batch.ts:68

Position in the original request, for correlation.


success: boolean

Defined in: src/types/batch.ts:70

Whether this operation succeeded.