|
8 | 8 | Agent types: |
9 | 9 | - PredicateBrowserAgent: Single-executor agent with manual step definitions |
10 | 10 | - PlannerExecutorAgent: Two-tier agent with LLM-generated plans |
| 11 | +
|
| 12 | +Task abstractions: |
| 13 | +- AutomationTask: Generic task model for browser automation |
| 14 | +- TaskCategory: Task category hints for heuristics selection |
| 15 | +
|
| 16 | +Heuristics: |
| 17 | +- HeuristicHint: Planner-generated hints for element selection |
| 18 | +- ComposableHeuristics: Dynamic heuristics composition |
| 19 | +
|
| 20 | +Recovery: |
| 21 | +- RecoveryState: Checkpoint tracking for rollback recovery |
| 22 | +- RecoveryCheckpoint: Individual recovery checkpoint |
11 | 23 | """ |
12 | 24 |
|
| 25 | +from .automation_task import ( |
| 26 | + AutomationTask, |
| 27 | + ExtractionSpec, |
| 28 | + SuccessCriteria, |
| 29 | + TaskCategory, |
| 30 | +) |
13 | 31 | from .browser_agent import ( |
14 | 32 | CaptchaConfig, |
15 | 33 | PermissionRecoveryConfig, |
16 | 34 | PredicateBrowserAgent, |
17 | 35 | PredicateBrowserAgentConfig, |
18 | 36 | VisionFallbackConfig, |
19 | 37 | ) |
| 38 | +from .composable_heuristics import ComposableHeuristics |
| 39 | +from .heuristic_spec import COMMON_HINTS, HeuristicHint, get_common_hint |
20 | 40 | from .planner_executor_agent import ( |
21 | 41 | ExecutorOverride, |
22 | 42 | IntentHeuristics, |
|
35 | 55 | normalize_plan, |
36 | 56 | validate_plan_smoothness, |
37 | 57 | ) |
| 58 | +from .recovery import RecoveryCheckpoint, RecoveryState |
38 | 59 |
|
39 | 60 | __all__ = [ |
| 61 | + # Automation Task |
| 62 | + "AutomationTask", |
| 63 | + "ExtractionSpec", |
| 64 | + "SuccessCriteria", |
| 65 | + "TaskCategory", |
40 | 66 | # Browser Agent |
41 | 67 | "CaptchaConfig", |
42 | 68 | "PermissionRecoveryConfig", |
43 | 69 | "PredicateBrowserAgent", |
44 | 70 | "PredicateBrowserAgentConfig", |
45 | 71 | "VisionFallbackConfig", |
| 72 | + # Heuristics |
| 73 | + "COMMON_HINTS", |
| 74 | + "ComposableHeuristics", |
| 75 | + "HeuristicHint", |
| 76 | + "get_common_hint", |
46 | 77 | # Planner + Executor Agent |
47 | 78 | "ExecutorOverride", |
48 | 79 | "IntentHeuristics", |
|
60 | 91 | "StepStatus", |
61 | 92 | "normalize_plan", |
62 | 93 | "validate_plan_smoothness", |
| 94 | + # Recovery |
| 95 | + "RecoveryCheckpoint", |
| 96 | + "RecoveryState", |
63 | 97 | ] |
64 | | - |
|
0 commit comments