Skip to main content

Module behavior_adapter

Module behavior_adapter 

Source
Expand description

Polymorphic adapter for structured JSON-driven browser behavior tuning.

This module accepts multiple JSON shapes and maps them into concrete stygian-browser runtime behavior by mutating crate::BrowserConfig and returning an AppliedBehaviorPlan for runtime orchestration.

Supported input envelopes:

  • Direct runtime policy object (execution_mode, session_mode, …)
  • Full investigation bundle object with nested policy field
  • Lightweight direct override object (headless, stealth_level, …)

Structs§

AppliedBehaviorPlan
Structured behavior plan produced after JSON adaptation.
PolymorphicBehaviorAdapter
Polymorphic adapter selected from structured JSON input.

Enums§

AdapterKind
Source JSON shape selected by the polymorphic adapter.
BehaviorInteractionLevel
Interaction intensity recommendation for runtime page humanization.
ExecutionMode
Browser execution mode.
SessionMode
Session stickiness mode.
TelemetryLevel
Telemetry intensity level.

Traits§

BrowserBehaviorAdapter
Trait for behavior adapters that can mutate a browser config.