x
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
"""
|
||||
核心模块 - 提供扩展性基础设施
|
||||
|
||||
包含:
|
||||
- Registry: 注册机制
|
||||
- State: 增强的状态管理
|
||||
- Provider: LLM Provider 抽象
|
||||
- Response: 统一响应格式
|
||||
"""
|
||||
|
||||
from .registry import (
|
||||
BaseRegistry,
|
||||
NodeRegistry,
|
||||
ToolRegistry,
|
||||
WorkflowRegistry,
|
||||
ProviderRegistry,
|
||||
RegistryEntry,
|
||||
ToolMetadata,
|
||||
WorkflowMetadata,
|
||||
ProviderMetadata,
|
||||
register_tool,
|
||||
register_workflow,
|
||||
register_provider,
|
||||
)
|
||||
from .state import AgentState, StateContext
|
||||
from .providers import LLMProvider, LLMFactory
|
||||
from .response import ApiResponse, StreamEvent
|
||||
|
||||
__all__ = [
|
||||
# Registry
|
||||
"BaseRegistry",
|
||||
"NodeRegistry",
|
||||
"ToolRegistry",
|
||||
"WorkflowRegistry",
|
||||
"ProviderRegistry",
|
||||
"RegistryEntry",
|
||||
"ToolMetadata",
|
||||
"WorkflowMetadata",
|
||||
"ProviderMetadata",
|
||||
"register_tool",
|
||||
"register_workflow",
|
||||
"register_provider",
|
||||
# State
|
||||
"AgentState",
|
||||
"StateContext",
|
||||
# Provider
|
||||
"LLMProvider",
|
||||
"LLMFactory",
|
||||
# Response
|
||||
"ApiResponse",
|
||||
"StreamEvent",
|
||||
]
|
||||
Reference in New Issue
Block a user