Represents a line of JSONL in the batch prediction output file.
prediction
value (Value format)
The prediction result. value is used here instead of Any so that JsonFormat does not append an extra "@type" field when we convert the proto to JSON and so we can represent array of objects. Do not set error if this is set.
error
object (Error)
The error result. Do not set prediction if this is set.
input
Union type
Some identifier from the input so that the prediction can be mapped back to the input instance. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
instance
object (Struct format)
user's input instance. Struct is used here instead of Any so that JsonFormat does not append an extra "@type" field when we convert the proto to JSON.
key
string
Optional user-provided key from the input instance.
End of mutually exclusive fields.
| JSON representation |
|---|
{
"prediction": value,
"error": {
object ( |