|
1 | 1 | """ |
2 | | -Async API for Sentience SDK - Convenience re-exports |
| 2 | +Async API for Predicate SDK - Convenience re-exports |
3 | 3 |
|
4 | 4 | This module re-exports all async functions for backward compatibility and developer convenience. |
5 | 5 | You can also import directly from their respective modules: |
6 | 6 |
|
7 | 7 | # Option 1: From async_api (recommended for convenience) |
8 | 8 | from predicate.async_api import ( |
9 | | - AsyncSentienceBrowser, |
| 9 | + AsyncPredicateBrowser, |
10 | 10 | snapshot_async, |
11 | 11 | click_async, |
12 | 12 | wait_for_async, |
|
40 | 40 | # Re-export AsyncSentienceBrowser from browser.py (moved there for better organization) |
41 | 41 | from predicate.browser import AsyncSentienceBrowser |
42 | 42 |
|
| 43 | +# Predicate-named class counterparts (canonical moving forward). |
| 44 | +# Keep Sentience* names for backward compatibility. |
| 45 | +AsyncPredicateBrowser = AsyncSentienceBrowser |
| 46 | +PredicateAgentAsync = SentienceAgentAsync |
| 47 | + |
43 | 48 | # Re-export async expect functions from expect.py |
44 | 49 | from predicate.expect import ExpectationAsync, expect_async |
45 | 50 | from predicate.inspector import InspectorAsync, inspect_async |
|
76 | 81 | __all__ = [ |
77 | 82 | # Browser |
78 | 83 | "AsyncSentienceBrowser", # Re-exported from browser.py |
| 84 | + "AsyncPredicateBrowser", # Predicate-named alias (canonical) |
79 | 85 | # Snapshot (Phase 1) |
80 | 86 | "snapshot_async", # Re-exported from snapshot.py |
81 | 87 | # Actions (Phase 1) |
|
96 | 102 | "expect_async", # Re-exported from expect.py |
97 | 103 | "ExpectationAsync", # Re-exported from expect.py |
98 | 104 | # 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) |
100 | 107 | "BaseAgentAsync", # Re-exported from base_agent.py |
101 | 108 | # Phase 2D: Developer Tools |
102 | 109 | "RecorderAsync", # Re-exported from recorder.py |
|
0 commit comments