-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
66 lines (55 loc) · 1.73 KB
/
__init__.py
File metadata and controls
66 lines (55 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""
HelloAgents - 灵活、可扩展的多智能体框架
基于OpenAI原生API构建,提供简洁高效的智能体开发体验。
"""
# 配置第三方库的日志级别,减少噪音
import logging
logging.getLogger("httpx").setLevel(logging.WARNING)
logging.getLogger("qdrant_client").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.getLogger("neo4j").setLevel(logging.WARNING)
logging.getLogger("neo4j.notifications").setLevel(logging.WARNING)
# from .version import __version__, __author__, __email__, __description__
# 核心组件
from .core.llm import HelloAgentsLLM
from .core.config import Config
from .core.message import Message
from .core.exceptions import HelloAgentsException
# Agent实现
from .agents.simple_agent import SimpleAgent
from .agents.react_agent import ReActAgent
from .agents.reflection_agent import ReflectionAgent
from .agents.plan_solve_agent import PlanAndSolveAgent
# 工具系统
from .tools.registry import ToolRegistry, global_registry
from .tools.builtin.search import SearchTool, search
# from .tools.builtin.calculator import CalculatorTool, calculate
from .tools.chain import ToolChain, ToolChainManager
from .tools.async_executor import AsyncToolExecutor
__all__ = [
# 版本信息
"__version__",
"__author__",
"__email__",
"__description__",
# 核心组件
"HelloAgentsLLM",
"Config",
"Message",
"HelloAgentsException",
# Agent范式
"SimpleAgent",
"ReActAgent",
"ReflectionAgent",
"PlanAndSolveAgent",
# 工具系统
"ToolRegistry",
"global_registry",
"SearchTool",
"search",
# "CalculatorTool",
# "calculate",
"ToolChain",
"ToolChainManager",
"AsyncToolExecutor",
]