aito.client.AitoClient.job_request¶
-
AitoClient.
job_request
(job_endpoint: str, query: Union[Dict, List] = None, polling_time: int = 10) → Dict¶ make a request to an Aito API endpoint using job
This method should be used for requests that take longer than 30 seconds, e.g: evaluate
- Parameters
job_endpoint (str) – job end point
query (Union[Dict, List], optional) – an Aito query, defaults to None
polling_time (int) – polling wait time, defaults to 10
- Raises
RequestError – an error occurred during the execution of the job
- Returns
request JSON content
- Return type
Dict