param_hoisting#
- langchain_prompty.core.param_hoisting(
- top: dict[str, Any],
- bottom: dict[str, Any],
- top_key: Any = None,
Merge two dictionaries with hoisting of parameters from bottom to top.
- Parameters:
top (dict[str, Any]) – The top dictionary.
bottom (dict[str, Any]) – The bottom dictionary.
top_key (Any) – The key to hoist from the bottom to the top.
- Returns:
The merged dictionary.
- Return type:
dict[str, Any]