> ## 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**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

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

<ResponseField name="agent" type="str">
  No description available.
</ResponseField>

<ResponseField name="binding" type="Optional[RouteBinding]">
  No description available.
</ResponseField>

<ResponseField name="reason" type="str">
  No description available.
</ResponseField>

<ResponseField name="profile" type="Optional[str]">
  No description available.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L1844">
  `praisonaiagents/gateway/protocols.py` at line 1844
</Card>
