The type of turn state that extends TurnState, allowing for type-safe access to custom state properties within route handlers
OptionalauthOptional list of authorization handlers that this route requires.
The handler function that processes the activity if the selector matches.
OptionalisIndicates whether this route is an agentic-only route.
OptionalisIndicates whether this route is an invoke route.
OptionalrankOptional rank of the route, used to determine the order in which routes are evaluated.
0 - number.MAX_VALUE. Ranks of the same value are evaluated in order of addition.
The selector function used to determine if this route should handle the current activity.
Represents a route configuration for handling bot activities within an application.
Remarks
An AppRoute defines how incoming activities are matched and processed by combining a selector function that determines when the route should be activated with a handler function that processes the matched activities.
Example