get_prompt_input_key#

langchain.memory.utils.get_prompt_input_key(
inputs: dict[str, Any],
memory_variables: list[str],
) str[source]#

Get the prompt input key.

Parameters:
  • inputs (dict[str, Any]) – Dict[str, Any]

  • memory_variables (list[str]) – List[str]

Returns:

A prompt input key.

Return type:

str