langchain_core.language_models.llms.aupdate_cacheΒΆ

async langchain_core.language_models.llms.aupdate_cache(existing_prompts: Dict[int, List], llm_string: str, missing_prompt_idxs: List[int], new_results: LLMResult, prompts: List[str]) Optional[dict][source]ΒΆ

Update the cache and get the LLM output. Async version

Parameters
  • existing_prompts (Dict[int, List]) –

  • llm_string (str) –

  • missing_prompt_idxs (List[int]) –

  • new_results (LLMResult) –

  • prompts (List[str]) –

Return type

Optional[dict]