Skip to main content

ParallelModelResponse

ParallelModel TypeScript SDK


Interface: ParallelModelResponse<T>

Defined in: transport.ts:51

HTTP response envelope containing status, headers, raw text and decoded data.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Properties​

data​

data: T | null

Defined in: transport.ts:55

Decoded JSON response, or null if no JSON value is available.


headers​

headers: Record<string, string>

Defined in: transport.ts:59

HTTP headers associated with the request or response.


ok​

ok: boolean

Defined in: transport.ts:61

Whether the operation or HTTP response indicates success.


statusCode​

statusCode: number

Defined in: transport.ts:53

HTTP status code returned by the server.


text​

text: string

Defined in: transport.ts:57

Raw response text.