Skip to content

Commit b131fed

Browse files
author
SentienceDEV
committed
rebrand 2 with Predicate*
1 parent d17ad1a commit b131fed

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

predicate/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@
168168
from .visual_agent import SentienceVisualAgent, SentienceVisualAgentAsync
169169
from .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__ = [
@@ -196,6 +206,8 @@
196206
"backend_scroll_to_element",
197207
"backend_wait_for_stable",
198208
# Core SDK
209+
"PredicateBrowser",
210+
"AsyncPredicateBrowser",
199211
"SentienceBrowser",
200212
"AsyncSentienceBrowser",
201213
"Snapshot",
@@ -245,11 +257,15 @@
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",
@@ -293,6 +309,7 @@
293309
"AgentAction",
294310
# Verification (agent assertion loop)
295311
"AgentRuntime",
312+
"PredicateDebugger",
296313
"SentienceDebugger",
297314
"AssertContext",
298315
"AssertOutcome",

tests/test_predicate_aliases.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)