# 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/d5f4b2aa960940effc8430165ab3604038e817af/libs/sdk-py/langgraph_sdk/stream/subscription.py#L88)