- 新建 .gitignore 文件,忽略 __pycache__ 目录 - 创建 yaa 包的各个子模块:Agent、Config、Modules、Session、Tools - 为每个子模块添加 __init__.py 文件,导入相应模块内容 - 创建 yaa 包的 __init__.py 文件,导入 yaa 子模块
@@ -0,0 +1 @@
+__pycache__
@@ -0,0 +1,7 @@
+"""yaa 智能体模块"""
+from ..Agent.BaseAgent import BaseAgent
+
+__all__ = [
+ "BaseAgent"
+]
@@ -0,0 +1,9 @@
+"""yaa 配置模块"""
+from ..Config.Config import Config
+from ..Config.ServerConfig import ServerConfig
+ "Config",
+ "ServerConfig"
@@ -0,0 +1,10 @@
+from ..Modules.Auth import AuthService
+from ..Modules.LLM_API import APIService
+from ..Modules.Server import Server
+ "AuthService",
+ "APIService",
+ "Server"
@@ -0,0 +1,6 @@
+from ..Session.Session import Session
+ "Session"
+from ..Tools.BaseTool import BaseTool
+ "BaseTool"
+"""yaa 智能体核心包"""
+import yaa
+ "yaa"