# matches_subscription

> **Function** in `langgraph_sdk`

📖 [View in docs](https://reference.langchain.com/python/langgraph-sdk/stream/subscription/matches_subscription)

Whether `event` should be delivered for `definition`.

## Signature

```python
matches_subscription(
    event: Event,
    definition: SubscribeParams,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/6f83cc9dc2a24c7884ae7da20c9f39f469be35d7/libs/sdk-py/langgraph_sdk/stream/subscription.py#L88)