paddockai 0.0.1__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.
- paddockai/__init__.py +40 -0
- paddockai/_async_client.py +868 -0
- paddockai/_client.py +854 -0
- paddockai/_credentials.py +57 -0
- paddockai/_errors.py +70 -0
- paddockai/_gen/__init__.py +2 -0
- paddockai/_gen/agent_schema.py +259 -0
- paddockai/_gen/apikey_schema.py +117 -0
- paddockai/_gen/common_schema.py +57 -0
- paddockai/_gen/connector_schema.py +658 -0
- paddockai/_gen/event_schema.py +873 -0
- paddockai/_gen/message_schema.py +192 -0
- paddockai/_gen/model_schema.py +154 -0
- paddockai/_gen/session_schema.py +108 -0
- paddockai/_gen/template_schema.py +195 -0
- paddockai/_gen/tools_schema.py +337 -0
- paddockai/_gen/turn_schema.py +144 -0
- paddockai/_pagination.py +56 -0
- paddockai/_requests.py +40 -0
- paddockai/_sse.py +81 -0
- paddockai/_stream.py +231 -0
- paddockai/_timestamp.py +23 -0
- paddockai/_transport.py +217 -0
- paddockai/_version.py +1 -0
- paddockai/py.typed +0 -0
- paddockai/types.py +557 -0
- paddockai-0.0.1.dist-info/METADATA +43 -0
- paddockai-0.0.1.dist-info/RECORD +29 -0
- paddockai-0.0.1.dist-info/WHEEL +4 -0
paddockai/__init__.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""paddock: the Python server SDK (design 009#python-sdk).
|
|
2
|
+
|
|
3
|
+
from paddockai import Paddock
|
|
4
|
+
|
|
5
|
+
client = Paddock() # PADDOCK_API_KEY
|
|
6
|
+
agent = client.agents.create(template="code-maintainer@3")
|
|
7
|
+
session = agent.sessions.create(cwd="repos/web")
|
|
8
|
+
session.send("CI failed on main; fix it.")
|
|
9
|
+
with session.stream(after=0) as events:
|
|
10
|
+
for event in events:
|
|
11
|
+
...
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from . import types
|
|
15
|
+
from ._async_client import AsyncAgent, AsyncConnector, AsyncPaddock, AsyncSession
|
|
16
|
+
from ._client import Agent, Connector, Paddock, Session
|
|
17
|
+
from ._errors import ConnectionError, PaddockError, TimeoutError
|
|
18
|
+
from ._pagination import AsyncPage, SyncPage
|
|
19
|
+
from ._stream import AsyncStream, Stream
|
|
20
|
+
from ._version import __version__
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"Agent",
|
|
24
|
+
"AsyncAgent",
|
|
25
|
+
"AsyncConnector",
|
|
26
|
+
"AsyncPage",
|
|
27
|
+
"AsyncPaddock",
|
|
28
|
+
"AsyncSession",
|
|
29
|
+
"AsyncStream",
|
|
30
|
+
"ConnectionError",
|
|
31
|
+
"Connector",
|
|
32
|
+
"Paddock",
|
|
33
|
+
"PaddockError",
|
|
34
|
+
"Session",
|
|
35
|
+
"Stream",
|
|
36
|
+
"SyncPage",
|
|
37
|
+
"TimeoutError",
|
|
38
|
+
"__version__",
|
|
39
|
+
"types",
|
|
40
|
+
]
|