# BranchSpec

> **Class** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/graph/_branch/BranchSpec)

## Signature

```python
BranchSpec()
```

## Extends

- `NamedTuple`

## Properties

- `path`
- `ends`
- `input_schema`

## Methods

- [`from_path()`](https://reference.langchain.com/python/langgraph/graph/_branch/BranchSpec/from_path)
- [`run()`](https://reference.langchain.com/python/langgraph/graph/_branch/BranchSpec/run)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/b674dd46228b0928a6bc0ad9a3d8e38ef28f6895/libs/langgraph/langgraph/graph/_branch.py#L83)