File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 168168from .visual_agent import SentienceVisualAgent , SentienceVisualAgentAsync
169169from .wait import wait_for
170170
171+ # Predicate-named class counterparts (canonical moving forward).
172+ # Keep Sentience* names for backward compatibility.
173+ PredicateBrowser = SentienceBrowser
174+ AsyncPredicateBrowser = AsyncSentienceBrowser
175+ PredicateAgent = SentienceAgent
176+ PredicateAgentAsync = SentienceAgentAsync
177+ PredicateVisualAgent = SentienceVisualAgent
178+ PredicateVisualAgentAsync = SentienceVisualAgentAsync
179+ PredicateDebugger = SentienceDebugger
180+
171181__version__ = "0.99.8"
172182
173183__all__ = [
196206 "backend_scroll_to_element" ,
197207 "backend_wait_for_stable" ,
198208 # Core SDK
209+ "PredicateBrowser" ,
210+ "AsyncPredicateBrowser" ,
199211 "SentienceBrowser" ,
200212 "AsyncSentienceBrowser" ,
201213 "Snapshot" ,
245257 "LocalLLMProvider" ,
246258 "LocalVisionLLMProvider" ,
247259 "MLXVLMProvider" ,
260+ "PredicateAgent" ,
261+ "PredicateAgentAsync" ,
248262 "SentienceAgent" ,
249263 "SentienceAgentAsync" ,
250264 "RuntimeAgent" ,
251265 "RuntimeStep" ,
252266 "StepVerification" ,
267+ "PredicateVisualAgent" ,
268+ "PredicateVisualAgentAsync" ,
253269 "SentienceVisualAgent" ,
254270 "SentienceVisualAgentAsync" ,
255271 "ConversationalAgent" ,
293309 "AgentAction" ,
294310 # Verification (agent assertion loop)
295311 "AgentRuntime" ,
312+ "PredicateDebugger" ,
296313 "SentienceDebugger" ,
297314 "AssertContext" ,
298315 "AssertOutcome" ,
Original file line number Diff line number Diff line change 1+ """Compatibility tests for Predicate* class counterparts."""
2+
3+ from predicate import (
4+ AsyncPredicateBrowser ,
5+ PredicateAgent ,
6+ PredicateAgentAsync ,
7+ PredicateBrowser ,
8+ PredicateDebugger ,
9+ PredicateVisualAgent ,
10+ PredicateVisualAgentAsync ,
11+ AsyncSentienceBrowser ,
12+ SentienceAgent ,
13+ SentienceAgentAsync ,
14+ SentienceBrowser ,
15+ SentienceDebugger ,
16+ SentienceVisualAgent ,
17+ SentienceVisualAgentAsync ,
18+ )
19+
20+
21+ def test_predicate_browser_aliases () -> None :
22+ assert PredicateBrowser is SentienceBrowser
23+ assert AsyncPredicateBrowser is AsyncSentienceBrowser
24+
25+
26+ def test_predicate_agent_aliases () -> None :
27+ assert PredicateAgent is SentienceAgent
28+ assert PredicateAgentAsync is SentienceAgentAsync
29+
30+
31+ def test_predicate_visual_agent_aliases () -> None :
32+ assert PredicateVisualAgent is SentienceVisualAgent
33+ assert PredicateVisualAgentAsync is SentienceVisualAgentAsync
34+
35+
36+ def test_predicate_debugger_alias () -> None :
37+ assert PredicateDebugger is SentienceDebugger
You can’t perform that action at this time.
0 commit comments