Toggle Menu
Prev Up Next

# `langchain_core.runnables.config`.ensure_config

langchain_core.runnables.config.ensure_config(config: Optional[RunnableConfig] = None) → RunnableConfig

  Ensure that a config is a dict with all keys present.

  Parameters

    config (Optional[RunnableConfig], optional) – The config to ensure. Defaults to None.

  Returns

    The ensured config.

  Return type

    RunnableConfig