Skip to content

Commit 29672b6

Browse files
authored
Merge pull request #229 from PredicateSystems/export_alias
reexport
2 parents 80300af + a7ff576 commit 29672b6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

predicate/async_api.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
2-
Async API for Sentience SDK - Convenience re-exports
2+
Async API for Predicate SDK - Convenience re-exports
33
44
This module re-exports all async functions for backward compatibility and developer convenience.
55
You can also import directly from their respective modules:
66
77
# Option 1: From async_api (recommended for convenience)
88
from predicate.async_api import (
9-
AsyncSentienceBrowser,
9+
AsyncPredicateBrowser,
1010
snapshot_async,
1111
click_async,
1212
wait_for_async,
@@ -40,6 +40,11 @@
4040
# Re-export AsyncSentienceBrowser from browser.py (moved there for better organization)
4141
from predicate.browser import AsyncSentienceBrowser
4242

43+
# Predicate-named class counterparts (canonical moving forward).
44+
# Keep Sentience* names for backward compatibility.
45+
AsyncPredicateBrowser = AsyncSentienceBrowser
46+
PredicateAgentAsync = SentienceAgentAsync
47+
4348
# Re-export async expect functions from expect.py
4449
from predicate.expect import ExpectationAsync, expect_async
4550
from predicate.inspector import InspectorAsync, inspect_async
@@ -76,6 +81,7 @@
7681
__all__ = [
7782
# Browser
7883
"AsyncSentienceBrowser", # Re-exported from browser.py
84+
"AsyncPredicateBrowser", # Predicate-named alias (canonical)
7985
# Snapshot (Phase 1)
8086
"snapshot_async", # Re-exported from snapshot.py
8187
# Actions (Phase 1)
@@ -96,7 +102,8 @@
96102
"expect_async", # Re-exported from expect.py
97103
"ExpectationAsync", # Re-exported from expect.py
98104
# Phase 2C: Agent Layer
99-
"SentienceAgentAsync", # Re-exported from agent.py
105+
"SentienceAgentAsync", # Re-exported from agent.py (legacy name)
106+
"PredicateAgentAsync", # Predicate-named alias (canonical)
100107
"BaseAgentAsync", # Re-exported from base_agent.py
101108
# Phase 2D: Developer Tools
102109
"RecorderAsync", # Re-exported from recorder.py

0 commit comments

Comments
 (0)