cuery.call ========== .. py:module:: cuery.call .. autoapi-nested-parse:: Wrappers to call instructor with a cuery.Prompt, cuery.Response and context. Attributes ---------- .. autoapisummary:: cuery.call.TQDM_POSITION Functions --------- .. autoapisummary:: cuery.call.call cuery.call.iter_calls cuery.call.rate_limited cuery.call.gather_calls Module Contents --------------- .. py:data:: TQDM_POSITION :value: -1 On Apify log each tqdm update on a separate line (line breaks trigger log updates). .. py:function:: call(client, prompt, context, response_model, fallback = True, log_prompt = False, log_response = False, **kwds) :async: Prompt once with the given Prompt and context (validated). If fallback is True, will return result of response_model.fallback() if the call fails. .. py:function:: iter_calls(client, prompt, context, response_model, callback = None, progress_callback = None, **kwds) :async: Sequential iteration of prompt over iterable contexts. .. py:function:: rate_limited(func, sem, **kwds) :async: .. py:function:: gather_calls(client, prompt, context, response_model, max_concurrent = 2, progress_callback = None, **kwds) :async: Async iteration of prompt over iterable contexts.