| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- """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",
- ]
|