carl-agent-server 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.
- carl_agent_server/__init__.py +38 -0
- carl_agent_server/agent.py +688 -0
- carl_agent_server/app.py +297 -0
- carl_agent_server/chain_source.py +126 -0
- carl_agent_server/cli.py +95 -0
- carl_agent_server/cost.py +36 -0
- carl_agent_server/hub.py +228 -0
- carl_agent_server/llm.py +39 -0
- carl_agent_server/models.py +254 -0
- carl_agent_server/run_records.py +88 -0
- carl_agent_server/sessions.py +115 -0
- carl_agent_server/timeouts.py +48 -0
- carl_agent_server/tools.py +110 -0
- carl_agent_server-0.1.0.dist-info/METADATA +201 -0
- carl_agent_server-0.1.0.dist-info/RECORD +18 -0
- carl_agent_server-0.1.0.dist-info/WHEEL +4 -0
- carl_agent_server-0.1.0.dist-info/entry_points.txt +3 -0
- carl_agent_server-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""carl-agent-server — serve CARL reasoning chains as HTTP agents.
|
|
2
|
+
|
|
3
|
+
One chain = one agent: a FastAPI facade with /invoke, /info, /healthz and its
|
|
4
|
+
OWN /docs (OpenAPI metadata is taken from the chain's Memory entity, so the
|
|
5
|
+
Swagger page reads as that agent's documentation). Agents are served solo
|
|
6
|
+
(`carl-agent serve`) or mounted together in the hub (`/agents/<name>/…`).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from .app import build_agent_app
|
|
10
|
+
from .hub import build_hub_app
|
|
11
|
+
from .models import (
|
|
12
|
+
AgentInfo,
|
|
13
|
+
ChatRequest,
|
|
14
|
+
ChatResponse,
|
|
15
|
+
DeploymentInfo,
|
|
16
|
+
DeploymentSpec,
|
|
17
|
+
HumanInputRequest,
|
|
18
|
+
InvokeRequest,
|
|
19
|
+
RunRecord,
|
|
20
|
+
ScheduleConfig,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
__version__ = "0.1.0"
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"AgentInfo",
|
|
27
|
+
"ChatRequest",
|
|
28
|
+
"ChatResponse",
|
|
29
|
+
"DeploymentInfo",
|
|
30
|
+
"DeploymentSpec",
|
|
31
|
+
"HumanInputRequest",
|
|
32
|
+
"InvokeRequest",
|
|
33
|
+
"RunRecord",
|
|
34
|
+
"ScheduleConfig",
|
|
35
|
+
"__version__",
|
|
36
|
+
"build_agent_app",
|
|
37
|
+
"build_hub_app",
|
|
38
|
+
]
|