> ## 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.

# Route Match • AI Agent SDK

> RouteMatch: Result of resolving a route.

# RouteMatch

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

Result of resolving a route.

Attributes:
agent: The resolved agent id.
binding: The binding that matched, or `None` when the fallback was used.
reason: Short human-readable explanation for logging/debugging.
profile: The isolated tenant-profile named by the matched binding, or
`None` when the route is unscoped / the fallback was used (Issue
\#3189). Surfaced here so the wrapper can enter the profile's memory
namespace / secret scope for the turn without re-resolving, and so
an unmatched route fails closed (never inherits another tenant's
profile).

## Properties

**agent** `str`

No description available.

**binding** `Optional[RouteBinding]`

No description available.

**reason** `str`

No description available.

**profile** `Optional[str]`

No description available.

## Source

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


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