aito.client.AitoClient.async_requests¶
-
AitoClient.
async_requests
(methods: List[str], endpoints: List[str], queries: List[Union[List, Dict]], batch_size: int = 10) → List[Dict]¶ async multiple requests
This method is useful when sending a batch of requests, for example, when sending a batch of predict requests.
- Parameters
methods (List[str]) – list of request methods
endpoints (List[str]) – list of request endpoints
queries (List[Dict]) – list of request queries
batch_size (int) – the number of queries to be sent per batch
- Returns
list of request response or exception if a request did not succeed
- Return type
List[Dict]