# 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/a4d4187e82cdb0a73d68c76d70d655dd73a6db0b/libs/langgraph/langgraph/_internal/_pydantic.py#L41)