agent_gate_getx library
GetX integration for agent_gate.
- GetxAdapter —
NavigationAdapteroverGet.toNamed/offNamed/offAllNamed(orGet.to(builder)for builder-only candidates). NoBuildContextneeded anywhere. - GateArguments — the typed payload delivered through
Get.argumentsso the destination knows why it was chosen. - GateGetPage — a
GetPagewhose page is aGatePage: the AI-chosen candidate renders inline at that named route. - GateMiddleware —
GetMiddleware.redirectDelegatefor apps on GetX's Navigator-2 router (GetMaterialApp.router); resolves a gate path to the chosen candidate's route before anything is built. - GateController — a
GetxControllerthat exposes the last decision reactively, for teams that keep navigation decisions in controllers.
Classes
- GateArguments
-
Payload delivered via
Get.argumentsby GetxAdapter. - GateController
-
A
GetxControllerwrapper aroundAgentGatefor teams that keep navigation decisions in controllers and bind UI withObx. - GateGetPage
-
A
GetPagewhose page is the gate. - GateMiddleware
-
GetX router middleware (Navigator 2 /
GetMaterialApp.router) that resolves a gate route to the chosen candidate's route. - GetxAdapter
-
NavigationAdapterfor GetX. Context-free: works from controllers, services and callbacks alike.
Enums
- How GetxAdapter should move to the chosen route.
Typedefs
- GateArgumentsBuilder = Object? Function(GateArguments args)
- Customises the arguments delivered to the destination. Receives the default GateArguments; return anything (or null).
-
GateGetContext
= Map<
String, Object?> Function(Map<String, String?> parameters, Object? arguments) -
Derives per-navigation decider context from GetX routing state
(
Get.parameters,Get.arguments). -
Derives decider context from the incoming
GetNavConfig.