arkitekt-fastapi 1.0.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.
- arkitekt_fastapi/__init__.py +54 -0
- arkitekt_fastapi/agent.py +1051 -0
- arkitekt_fastapi/auth.py +104 -0
- arkitekt_fastapi/detail_routes/__init__.py +6 -0
- arkitekt_fastapi/detail_routes/states.py +445 -0
- arkitekt_fastapi/detail_routes/tasks.py +36 -0
- arkitekt_fastapi/models.py +147 -0
- arkitekt_fastapi/openapi_utils.py +130 -0
- arkitekt_fastapi/retriever/__init__.py +0 -0
- arkitekt_fastapi/retriever/memory_retriever.py +369 -0
- arkitekt_fastapi/retriever/protocol.py +89 -0
- arkitekt_fastapi/retriever/replay.py +99 -0
- arkitekt_fastapi/route_groups/__init__.py +20 -0
- arkitekt_fastapi/route_groups/common.py +18 -0
- arkitekt_fastapi/route_groups/core.py +127 -0
- arkitekt_fastapi/route_groups/implementations.py +145 -0
- arkitekt_fastapi/route_groups/journal.py +207 -0
- arkitekt_fastapi/route_groups/locks.py +36 -0
- arkitekt_fastapi/route_groups/schemas.py +40 -0
- arkitekt_fastapi/route_groups/states.py +34 -0
- arkitekt_fastapi/route_groups/tasks.py +34 -0
- arkitekt_fastapi/routes.py +365 -0
- arkitekt_fastapi/sink/__init__.py +0 -0
- arkitekt_fastapi/sink/backend.py +54 -0
- arkitekt_fastapi/sink/memory_sink.py +49 -0
- arkitekt_fastapi/sink/protocol.py +35 -0
- arkitekt_fastapi/sql_lite/__init__.py +0 -0
- arkitekt_fastapi/sql_lite/retriever.py +507 -0
- arkitekt_fastapi/sql_lite/schema.py +119 -0
- arkitekt_fastapi/sql_lite/sink.py +175 -0
- arkitekt_fastapi/testing.py +988 -0
- arkitekt_fastapi-1.0.0.dist-info/METADATA +40 -0
- arkitekt_fastapi-1.0.0.dist-info/RECORD +34 -0
- arkitekt_fastapi-1.0.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Server mode: a declared Arkitekt app served over HTTP by FastAPI.
|
|
2
|
+
|
|
3
|
+
The agent runs on arkitekt-runtime's execution core with an in-process transport; it
|
|
4
|
+
registers with no server and cannot call other actions (``Task.call`` raises
|
|
5
|
+
``NoCallerError``).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .auth import (
|
|
9
|
+
AuthenticationError,
|
|
10
|
+
ExpandUserFromRequest,
|
|
11
|
+
UserSource,
|
|
12
|
+
)
|
|
13
|
+
from .routes import (
|
|
14
|
+
add_agent_routes,
|
|
15
|
+
add_implementation_routes,
|
|
16
|
+
add_lock_routes,
|
|
17
|
+
add_schema_routes,
|
|
18
|
+
add_state_detail_routes,
|
|
19
|
+
add_state_routes,
|
|
20
|
+
configure_fastapi,
|
|
21
|
+
create_lifespan,
|
|
22
|
+
)
|
|
23
|
+
from .testing import (
|
|
24
|
+
AsyncAgentTestClient,
|
|
25
|
+
AgentTestClient,
|
|
26
|
+
AssignmentResult,
|
|
27
|
+
BufferedEvent,
|
|
28
|
+
create_test_app_and_agent,
|
|
29
|
+
)
|
|
30
|
+
from .agent import FastAPIConnectionManager, FastApiAgent, FastApiTransport
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
__all__ = [
|
|
34
|
+
"AuthenticationError",
|
|
35
|
+
"ExpandUserFromRequest",
|
|
36
|
+
"UserSource",
|
|
37
|
+
"FastApiAgent",
|
|
38
|
+
"FastApiTransport",
|
|
39
|
+
"FastAPIConnectionManager",
|
|
40
|
+
"configure_fastapi",
|
|
41
|
+
"create_lifespan",
|
|
42
|
+
"add_agent_routes",
|
|
43
|
+
"add_implementation_routes",
|
|
44
|
+
"add_lock_routes",
|
|
45
|
+
"add_schema_routes",
|
|
46
|
+
"add_state_detail_routes",
|
|
47
|
+
"add_state_routes",
|
|
48
|
+
# Testing utilities
|
|
49
|
+
"AgentTestClient",
|
|
50
|
+
"AsyncAgentTestClient",
|
|
51
|
+
"AssignmentResult",
|
|
52
|
+
"BufferedEvent",
|
|
53
|
+
"create_test_app_and_agent",
|
|
54
|
+
]
|