agentomatic 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.
- agentomatic/__init__.py +59 -0
- agentomatic/_version.py +5 -0
- agentomatic/cli/__init__.py +7 -0
- agentomatic/cli/commands.py +715 -0
- agentomatic/cli/templates.py +188 -0
- agentomatic/config/__init__.py +3 -0
- agentomatic/config/defaults.py +10 -0
- agentomatic/config/settings.py +117 -0
- agentomatic/core/__init__.py +31 -0
- agentomatic/core/lifespan.py +102 -0
- agentomatic/core/manifest.py +100 -0
- agentomatic/core/platform.py +571 -0
- agentomatic/core/registry.py +198 -0
- agentomatic/core/router_factory.py +541 -0
- agentomatic/core/state.py +63 -0
- agentomatic/middleware/__init__.py +18 -0
- agentomatic/middleware/auth.py +53 -0
- agentomatic/middleware/feedback.py +207 -0
- agentomatic/middleware/logging.py +40 -0
- agentomatic/middleware/metrics.py +93 -0
- agentomatic/middleware/rate_limit.py +70 -0
- agentomatic/observability/__init__.py +11 -0
- agentomatic/observability/concurrency.py +109 -0
- agentomatic/observability/metrics.py +101 -0
- agentomatic/observability/telemetry.py +316 -0
- agentomatic/optimize/__init__.py +112 -0
- agentomatic/optimize/dataset.py +142 -0
- agentomatic/optimize/loop.py +870 -0
- agentomatic/optimize/metrics.py +781 -0
- agentomatic/optimize/optimizer.py +891 -0
- agentomatic/optimize/report.py +774 -0
- agentomatic/optimize/runner.py +261 -0
- agentomatic/optimize/strategies.py +592 -0
- agentomatic/optimize/synthesizer.py +729 -0
- agentomatic/prompts/__init__.py +7 -0
- agentomatic/prompts/manager.py +59 -0
- agentomatic/protocols/__init__.py +3 -0
- agentomatic/protocols/decorators.py +75 -0
- agentomatic/providers/__init__.py +3 -0
- agentomatic/providers/embeddings.py +44 -0
- agentomatic/providers/llm.py +116 -0
- agentomatic/py.typed +1 -0
- agentomatic/storage/__init__.py +40 -0
- agentomatic/storage/base.py +192 -0
- agentomatic/storage/memory.py +167 -0
- agentomatic/storage/models.py +129 -0
- agentomatic/storage/sqlalchemy.py +317 -0
- agentomatic/ui/.chainlit/config.toml +14 -0
- agentomatic/ui/__init__.py +50 -0
- agentomatic/ui/chat.py +198 -0
- agentomatic-0.1.0.dist-info/METADATA +363 -0
- agentomatic-0.1.0.dist-info/RECORD +55 -0
- agentomatic-0.1.0.dist-info/WHEEL +4 -0
- agentomatic-0.1.0.dist-info/entry_points.txt +2 -0
- agentomatic-0.1.0.dist-info/licenses/LICENSE +21 -0
agentomatic/__init__.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Agentomatic — Drop agents, not code.
|
|
3
|
+
|
|
4
|
+
Zero-code multi-agent API platform framework.
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
from agentomatic import AgentPlatform, AgentManifest
|
|
9
|
+
|
|
10
|
+
platform = AgentPlatform.from_folder("agents/")
|
|
11
|
+
app = platform.build()
|
|
12
|
+
|
|
13
|
+
# Run: uvicorn main:app --reload
|
|
14
|
+
|
|
15
|
+
With storage::
|
|
16
|
+
|
|
17
|
+
from agentomatic import AgentPlatform
|
|
18
|
+
from agentomatic.storage import MemoryStore, SQLAlchemyStore
|
|
19
|
+
|
|
20
|
+
platform = AgentPlatform.from_folder(
|
|
21
|
+
"agents/",
|
|
22
|
+
store=MemoryStore(), # or SQLAlchemyStore("postgresql+asyncpg://...")
|
|
23
|
+
enable_metrics=True,
|
|
24
|
+
enable_auth=True,
|
|
25
|
+
auth_api_key="secret",
|
|
26
|
+
)
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
from __future__ import annotations
|
|
30
|
+
|
|
31
|
+
# Version
|
|
32
|
+
from agentomatic._version import __version__
|
|
33
|
+
|
|
34
|
+
# Core public API
|
|
35
|
+
from agentomatic.core.manifest import AgentManifest, RegisteredAgent
|
|
36
|
+
from agentomatic.core.platform import AgentPlatform
|
|
37
|
+
from agentomatic.core.registry import AgentRegistry
|
|
38
|
+
from agentomatic.core.state import BaseAgentState
|
|
39
|
+
from agentomatic.prompts import PromptManager
|
|
40
|
+
|
|
41
|
+
# Protocols
|
|
42
|
+
from agentomatic.protocols.decorators import APIResponse, handle_api_errors, log_api_call
|
|
43
|
+
|
|
44
|
+
__all__ = [
|
|
45
|
+
# Core
|
|
46
|
+
"AgentPlatform",
|
|
47
|
+
"AgentManifest",
|
|
48
|
+
"RegisteredAgent",
|
|
49
|
+
"AgentRegistry",
|
|
50
|
+
"BaseAgentState",
|
|
51
|
+
# Protocols
|
|
52
|
+
"APIResponse",
|
|
53
|
+
"handle_api_errors",
|
|
54
|
+
"log_api_call",
|
|
55
|
+
# Prompts
|
|
56
|
+
"PromptManager",
|
|
57
|
+
# Version
|
|
58
|
+
"__version__",
|
|
59
|
+
]
|
agentomatic/_version.py
ADDED