get_function_first_arg_dict_keys#
- langchain_core.runnables.utils.get_function_first_arg_dict_keys(func: Callable) List[str] | None [source]#
Get the keys of the first argument of a function if it is a dict.
- Parameters:
func (Callable) – The function to check.
- Returns:
- The keys of the first argument if it is a dict,
None otherwise.
- Return type:
Optional[List[str]]