ellipsis-dev 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ellipsis/__init__.py +66 -0
- ellipsis/_client.py +3238 -0
- ellipsis/_errors.py +98 -0
- ellipsis/_pagination.py +98 -0
- ellipsis/_session_handle.py +187 -0
- ellipsis/_stream.py +275 -0
- ellipsis/_transport.py +188 -0
- ellipsis/frames.py +123 -0
- ellipsis/models.py +3415 -0
- ellipsis_dev-0.1.0.dist-info/METADATA +39 -0
- ellipsis_dev-0.1.0.dist-info/RECORD +12 -0
- ellipsis_dev-0.1.0.dist-info/WHEEL +4 -0
ellipsis/__init__.py
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""The Ellipsis Python SDK.
|
|
2
|
+
|
|
3
|
+
from ellipsis import Ellipsis
|
|
4
|
+
|
|
5
|
+
client = Ellipsis(api_key=...)
|
|
6
|
+
session = client.sessions.start(prompt="...")
|
|
7
|
+
|
|
8
|
+
`Ellipsis` is sync, `AsyncEllipsis` is async; both cover every /v1 operation.
|
|
9
|
+
The generated modules (`models`, `_client`) are emitted from the committed
|
|
10
|
+
OpenAPI spec by `ellipsis.pyscripts.sdk.generate_sdks` in the monorepo.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from . import frames, models
|
|
14
|
+
from ._client import AsyncEllipsis, Ellipsis
|
|
15
|
+
from ._errors import (
|
|
16
|
+
APIError,
|
|
17
|
+
AuthenticationError,
|
|
18
|
+
ConflictError,
|
|
19
|
+
EllipsisError,
|
|
20
|
+
ForbiddenError,
|
|
21
|
+
NotFoundError,
|
|
22
|
+
RateLimitError,
|
|
23
|
+
ServerError,
|
|
24
|
+
TransportError,
|
|
25
|
+
UnprocessableError,
|
|
26
|
+
)
|
|
27
|
+
from ._pagination import AsyncPage, SyncPage
|
|
28
|
+
from ._session_handle import (
|
|
29
|
+
TERMINAL_STATUSES,
|
|
30
|
+
AsyncSessionHandle,
|
|
31
|
+
SessionHandle,
|
|
32
|
+
)
|
|
33
|
+
from ._stream import (
|
|
34
|
+
SESSION_STREAM_PROTOCOL_VERSION,
|
|
35
|
+
StreamAuthError,
|
|
36
|
+
StreamOutcome,
|
|
37
|
+
StreamUnavailableError,
|
|
38
|
+
stream_session,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
__all__ = [
|
|
42
|
+
"APIError",
|
|
43
|
+
"AsyncEllipsis",
|
|
44
|
+
"AsyncPage",
|
|
45
|
+
"AuthenticationError",
|
|
46
|
+
"ConflictError",
|
|
47
|
+
"Ellipsis",
|
|
48
|
+
"EllipsisError",
|
|
49
|
+
"ForbiddenError",
|
|
50
|
+
"NotFoundError",
|
|
51
|
+
"RateLimitError",
|
|
52
|
+
"ServerError",
|
|
53
|
+
"SyncPage",
|
|
54
|
+
"TransportError",
|
|
55
|
+
"SESSION_STREAM_PROTOCOL_VERSION",
|
|
56
|
+
"TERMINAL_STATUSES",
|
|
57
|
+
"AsyncSessionHandle",
|
|
58
|
+
"SessionHandle",
|
|
59
|
+
"StreamAuthError",
|
|
60
|
+
"StreamOutcome",
|
|
61
|
+
"StreamUnavailableError",
|
|
62
|
+
"UnprocessableError",
|
|
63
|
+
"frames",
|
|
64
|
+
"models",
|
|
65
|
+
"stream_session",
|
|
66
|
+
]
|