Light Logo
JavaScript SDK (v0.54.0)Reference

PredictionWithDetails

Represents a prediction with details.

Interface: PredictionWithDetails

Represents a prediction with details.

Extends

Properties

created_at

created_at: string

Timestamp when the prediction was created.

Inherited from

Prediction.created_at


error

error: null | TaskError

Error details if the prediction failed.


execution_time

execution_time: null | string

Time taken to execute the prediction.

Inherited from

Prediction.execution_time


id

id: string

Unique identifier for the prediction.

Inherited from

Prediction.id


input

input: Record<string, JsonValue>

Input data provided for the prediction.


metrics

metrics: null | Record<string, JsonValue>

Usage metrics returned by the model.


model

model: PredictionModel

The model of the prediction.

Inherited from

Prediction.model


output

output: JsonValue

Output generated by the prediction.


setup_time

setup_time: null | string

Time taken to set up the prediction environment.

Inherited from

Prediction.setup_time


status

status: Status

Current status of the prediction.

Inherited from

Prediction.status


stream

stream: boolean

Whether the prediction supports streaming. This value may change to false if streaming is no longer available for the prediction, such as after it has expired.


updated_at

updated_at: string

Timestamp of the last update to the prediction.

Inherited from

Prediction.updated_at