-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
47 lines (37 loc) · 1.43 KB
/
__init__.py
File metadata and controls
47 lines (37 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
Browser Use integration (Predicate plugin).
This package provides a low-friction integration layer that lets browser-use users
attach Predicate's deterministic verification (AgentRuntime / PredicateDebugger)
to existing Browser Use agent loops via lifecycle hooks and optional tools.
Public surface is intentionally small and may evolve.
"""
from __future__ import annotations
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING: # pragma: no cover
from .plugin import (
PredicateBrowserUsePlugin,
PredicateBrowserUsePluginConfig,
PredicateBrowserUseVerificationError,
StepCheckSpec,
)
__all__ = [
"PredicateBrowserUsePlugin",
"PredicateBrowserUsePluginConfig",
"PredicateBrowserUseVerificationError",
"StepCheckSpec",
]
def __getattr__(name: str) -> Any: # pragma: no cover
if name in __all__:
from .plugin import ( # local import keeps linting/packaging robust
PredicateBrowserUsePlugin,
PredicateBrowserUsePluginConfig,
PredicateBrowserUseVerificationError,
StepCheckSpec,
)
return {
"PredicateBrowserUsePlugin": PredicateBrowserUsePlugin,
"PredicateBrowserUsePluginConfig": PredicateBrowserUsePluginConfig,
"PredicateBrowserUseVerificationError": PredicateBrowserUseVerificationError,
"StepCheckSpec": StepCheckSpec,
}[name]
raise AttributeError(name)