# get_fields

> **Function** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/_internal/_pydantic/get_fields)

Get the field names of a Pydantic model.

## Signature

```python
get_fields(
    model: type[BaseModel] | BaseModel,
) -> dict[str, FieldInfo]
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/eae916719fe78de2900bb7cd45c212fffd64f88b/libs/langgraph/langgraph/_internal/_pydantic.py#L41)