# SwarmState

> **Class** in `langgraph_swarm`

📖 [View in docs](https://reference.langchain.com/python/langgraph-swarm/swarm/SwarmState)

State schema for the multi-agent swarm.

## Signature

```python
SwarmState()
```

## Extends

- `MessagesState`

## Properties

- `active_agent`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph-swarm-py/blob/366f9c54f1bc978603e478d2612e57e65e0b0859/langgraph_swarm/swarm.py#L13)