AsyncPredictResponse
extends ApiResponse
in package
Async Response Wrapper class for a Predict response.
Links a Job to a future PredictResponse.
Table of Contents
Properties
- $apiRequest : ApiRequest
- $document : Document|null
- $job : Job
- $rawHttp : array<string|int, mixed>
Methods
- __construct() : mixed
- getRawHttp() : string
Properties
$apiRequest
public
ApiRequest
$apiRequest
Request part of the response.
$document
public
Document|null
$document
Document object. Can be null when enqueuing.
$job
public
Job
$job
Job object link to the prediction. As long as it isn't complete, the prediction doesn't exist.
$rawHttp
private
array<string|int, mixed>
$rawHttp
Raw http result. Used for debugging purposes.
Methods
__construct()
public
__construct(string $predictionType, array<string|int, mixed> $rawResponse) : mixed
Parameters
- $predictionType : string
-
Type of prediction.
- $rawResponse : array<string|int, mixed>
-
Raw HTTP response.
getRawHttp()
public
getRawHttp() : string
Return values
string —String representation.