# get_function_first_arg_dict_keys

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/runnables/utils/get_function_first_arg_dict_keys)

Get the keys of the first argument of a function if it is a dict.

## Signature

```python
get_function_first_arg_dict_keys(
    func: Callable[..., Any],
) -> list[str] | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `func` | `Callable[..., Any]` | Yes | The function to check. |

## Returns

`list[str] | None`

The keys of the first argument if it is a dict, None otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/1c3a4186cf2ba4f28face59118ac7786de009f91/libs/core/langchain_core/runnables/utils.py#L368)