aito.client.v2.responses.V2EstimateResponse
- class aito.client.v2.responses.V2EstimateResponse(json: Dict)
Bases:
V2ResponseAn
estimateresponse — a single predicted numeric value- Parameters:
json (Dict) – the parsed JSON response
Methods
Attributes
the unwrapped payload
which engine answered, if the client requested
metathe raw JSON response
the result kind this response class represents
the response metadata, empty unless the client was built with
meta=Truethe estimated value
the non-fatal notes the engine attached to this response
the explanation of how the estimate was computed, when
whywas selected- property data: Dict
the unwrapped payload
- Return type:
Dict
- property engine: str | None
which engine answered, if the client requested
meta- Return type:
Optional[str]
- property json: Dict
the raw JSON response
- Return type:
Dict
- kind: str = 'estimate'
the result kind this response class represents
- property meta: Dict
the response metadata, empty unless the client was built with
meta=TrueCurrently carries
engine—v2for a collection served by the rep2 engine,v1for a legacy table served by the compatibility shim.- Return type:
Dict
- property value: float
the estimated value
v2 names the scalar
value; the rep1 compatibility shim still names itestimate. Both are read here so the property works on a collection and on a legacy table alike.- Raises:
KeyError – the payload carries neither key
- Return type:
float
- property warnings: List[V2Warning]
the non-fatal notes the engine attached to this response
Empty for the great majority of responses. Worth checking when a result is unexpectedly broad or unexpectedly empty — the engine reports a
whereit could not apply here rather than failing the request.- Return type:
List[V2Warning]
- property why: Dict | None
the explanation of how the estimate was computed, when
whywas selected- Return type:
Optional[Dict]