agent_gate 0.1.0 copy "agent_gate: ^0.1.0" to clipboard
agent_gate: ^0.1.0 copied to clipboard

AI-agnostic behavioral routing middleware for Flutter. Collects consent-gated user-behavior signals on a page, lets YOUR backend or AI decide which of up to 999 candidate pages comes next, and routes [...]

0.1.0 #

Initial release.

  • Gate / GateCandidate (up to 1,000 candidates per gate) with validation.
  • AgentGate.navigate / decide / prefetch pipeline: cache → rules → decider with retries and a hard timeout → validation (known id, allow-list, min confidence) → audit → adapter navigation.
  • Deciders: HttpDecider (recommended, optional HMAC signing), CallbackDecider, RuleDecider, CompositeDecider.
  • PromptBuilder with enum-constrained tool schemas for OpenAI, Anthropic and Gemini request shapes.
  • Consent-gated BehaviorTracker with per-page PageSessionSummary (dwell, hesitation, taps, attempts, failures, validation errors, field edits, scroll, back, page trail).
  • Redactor for PII/PCI keys; GateContext with app / device / baseline layers.
  • Adapters: NavigatorAdapter, RouteNameAdapter (GoRouter, GetX, auto_route, Beamer…), CallbackAdapter (Bloc, Riverpod, custom).
  • Widgets: GatePage, TrackedPage, TrackedTap, GateNavigatorObserver, AgentLoadingView with streamed reasoning.
  • Audit: GateAuditSink, MemoryAuditSink, MultiAuditSink; GateObserver hooks.
  • GateConfig.risk() and GateConfig.recommendation() presets.
0
likes
150
points
113
downloads

Documentation

API reference

Publisher

verified publishermsishamim.com

Weekly Downloads

AI-agnostic behavioral routing middleware for Flutter. Collects consent-gated user-behavior signals on a page, lets YOUR backend or AI decide which of up to 999 candidate pages comes next, and routes there with audit trails, fallbacks and timeouts built in. Works with Navigator, GoRouter, GetX, Bloc, Riverpod and any other state-management solution.

Repository (GitHub)
View/report issues

Topics

#navigation #ai #agent #fraud-detection #personalization

License

MIT (license)

Dependencies

crypto, flutter, http, meta

More

Packages that depend on agent_gate