| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- """Agentic Supply —— Agentic 架构基础设施供给层
- 层次结构(由内到外):
- ┌─────────────────┐
- │ supply.config │ 配置管理
- ├─────────────────┤
- │ supply.infra │ 基础设施(DB / HTTP / 日志 / 工具)
- ├─────────────────┤
- │ supply.core │ 框架内核(Agent / Tool / Memory / Orchestrator)
- ├─────────────────┤
- │ supply.server │ 应用服务(Quart / XXL)
- └─────────────────┘
- 快速开始:
- from supply import (
- Agent, Tool, ToolRegistry, # 领域层
- DatabaseManager, LogService, # 设施层
- create_app, # 服务层
- )
- """
- # 配置
- from supply.config import (
- GlobalConfig,
- DatabaseConfig,
- AliyunLogConfig,
- AliyunOssConfig,
- PgConfig,
- MilvusConfig,
- RedisConfig,
- )
- # 基础设施
- from supply.infra import (
- DatabaseManager,
- create_backend,
- MySQLBackend,
- LogService,
- LogRecord,
- LogLevel,
- LogCategory,
- LogStatus,
- AsyncHttpClient,
- )
- # 领域
- from supply.core import (
- Agent,
- AgentContext,
- AgentResult,
- AgentStatus,
- AgentOrchestrator,
- ChainOrchestrator,
- ParallelOrchestrator,
- Tool,
- ToolResult,
- ToolRegistry,
- Memory,
- ConversationMemory,
- VectorMemory,
- )
- # 服务
- from supply.server import create_app
- __all__ = [
- # Config
- "GlobalConfig",
- "DatabaseConfig", "AliyunLogConfig", "AliyunOssConfig",
- "PgConfig", "MilvusConfig", "RedisConfig",
- # Infra
- "DatabaseManager", "create_backend", "MySQLBackend",
- "LogService", "LogRecord", "LogLevel", "LogCategory", "LogStatus",
- "AsyncHttpClient",
- # Core - Agent
- "Agent", "AgentContext", "AgentResult", "AgentStatus",
- "AgentOrchestrator", "ChainOrchestrator", "ParallelOrchestrator",
- "Tool", "ToolResult", "ToolRegistry",
- "Memory", "ConversationMemory", "VectorMemory",
- # Server
- "create_app",
- ]
|