> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# matches • AI Agent SDK

> matches: Return True if every constrained condition equals the facts.

# matches

Method

> This is a method of the [**RouteBinding**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/RouteBinding.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Return True if every constrained condition equals the facts.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def matches(facts: 'RouteFacts') -> bool
```

## Parameters

**facts** `RouteFacts` *required*

No description available.

### Returns

**Returns** `bool`

The result of the operation.

## Uses

* `candidates.add`

## Used By

* [`resolve_route`](../functions/resolve_route)
* [`HookRegistry.get_hooks`](../functions/HookRegistry-get_hooks)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L2423)
>
> `praisonaiagents/gateway/protocols.py` at line 2423


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.