edgecrab 0.4.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.
- edgecrab/__init__.py +61 -0
- edgecrab/_version.py +1 -0
- edgecrab/agent.py +699 -0
- edgecrab/cli.py +116 -0
- edgecrab/client.py +538 -0
- edgecrab/py.typed +0 -0
- edgecrab/types.py +95 -0
- edgecrab-0.4.1.dist-info/METADATA +168 -0
- edgecrab-0.4.1.dist-info/RECORD +12 -0
- edgecrab-0.4.1.dist-info/WHEEL +5 -0
- edgecrab-0.4.1.dist-info/entry_points.txt +2 -0
- edgecrab-0.4.1.dist-info/top_level.txt +1 -0
edgecrab/__init__.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""edgecrab — Python SDK for the EdgeCrab autonomous coding agent."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from edgecrab._version import __version__
|
|
6
|
+
from edgecrab.agent import Agent, AsyncAgent, AgentResult
|
|
7
|
+
from edgecrab.client import (
|
|
8
|
+
EdgeCrabClient,
|
|
9
|
+
AsyncEdgeCrabClient,
|
|
10
|
+
EdgeCrabError,
|
|
11
|
+
AuthenticationError,
|
|
12
|
+
RateLimitError,
|
|
13
|
+
ServerError,
|
|
14
|
+
TimeoutError,
|
|
15
|
+
ConnectionError,
|
|
16
|
+
MaxTurnsExceededError,
|
|
17
|
+
InterruptedError,
|
|
18
|
+
)
|
|
19
|
+
from edgecrab.types import (
|
|
20
|
+
ChatMessage,
|
|
21
|
+
ChatCompletionRequest,
|
|
22
|
+
ChatCompletionResponse,
|
|
23
|
+
ChatChoice,
|
|
24
|
+
UsageInfo,
|
|
25
|
+
ModelInfo,
|
|
26
|
+
HealthResponse,
|
|
27
|
+
StreamDelta,
|
|
28
|
+
StreamChoice,
|
|
29
|
+
StreamChunk,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"__version__",
|
|
34
|
+
# High-level Agent API
|
|
35
|
+
"Agent",
|
|
36
|
+
"AsyncAgent",
|
|
37
|
+
"AgentResult",
|
|
38
|
+
# Low-level HTTP clients
|
|
39
|
+
"EdgeCrabClient",
|
|
40
|
+
"AsyncEdgeCrabClient",
|
|
41
|
+
# Error hierarchy
|
|
42
|
+
"EdgeCrabError",
|
|
43
|
+
"AuthenticationError",
|
|
44
|
+
"RateLimitError",
|
|
45
|
+
"ServerError",
|
|
46
|
+
"TimeoutError",
|
|
47
|
+
"ConnectionError",
|
|
48
|
+
"MaxTurnsExceededError",
|
|
49
|
+
"InterruptedError",
|
|
50
|
+
# Types
|
|
51
|
+
"ChatMessage",
|
|
52
|
+
"ChatCompletionRequest",
|
|
53
|
+
"ChatCompletionResponse",
|
|
54
|
+
"ChatChoice",
|
|
55
|
+
"UsageInfo",
|
|
56
|
+
"ModelInfo",
|
|
57
|
+
"HealthResponse",
|
|
58
|
+
"StreamDelta",
|
|
59
|
+
"StreamChoice",
|
|
60
|
+
"StreamChunk",
|
|
61
|
+
]
|
edgecrab/_version.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.1"
|