Toggle Menu
Prev Up Next

# `langchain_core.language_models.llms`.aupdate_cache

async langchain_core.language_models.llms.aupdate_cache(cache: Optional[Union[BaseCache, bool]], existing_prompts: Dict[int, List], llm_string: str, missing_prompt_idxs: List[int], new_results: LLMResult, prompts: List[str]) → Optional[dict]

  Update the cache and get the LLM output. Async version

  Parameters

    - cache (Optional[Union[BaseCache, bool]]) –

    - existing_prompts (Dict[int, List]) –

    - llm_string (str) –

    - missing_prompt_idxs (List[int]) –

    - new_results (LLMResult) –

    - prompts (List[str]) –

  Return type

    Optional[dict]