Browse Source

【新增】创建 yaa 包的模块和子模块

- 新建 .gitignore 文件,忽略 __pycache__ 目录
- 创建 yaa 包的各个子模块:Agent、Config、Modules、Session、Tools
- 为每个子模块添加 __init__.py 文件,导入相应模块内容
- 创建 yaa 包的 __init__.py 文件,导入 yaa 子模块
PJ568 1 year ago
parent
commit
2d8168c084
7 changed files with 45 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 7 0
      yaa/Agent/__init__.py
  3. 9 0
      yaa/Config/__init__.py
  4. 10 0
      yaa/Modules/__init__.py
  5. 6 0
      yaa/Session/__init__.py
  6. 6 0
      yaa/Tools/__init__.py
  7. 6 0
      yaa/__init__.py

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+__pycache__

+ 7 - 0
yaa/Agent/__init__.py

@@ -0,0 +1,7 @@
+"""yaa 智能体模块"""
+from ..Agent.BaseAgent import BaseAgent
+
+
+__all__ = [
+    "BaseAgent"
+]

+ 9 - 0
yaa/Config/__init__.py

@@ -0,0 +1,9 @@
+"""yaa 配置模块"""
+from ..Config.Config import Config
+from ..Config.ServerConfig import ServerConfig
+
+
+__all__ = [
+    "Config",
+    "ServerConfig"
+]

+ 10 - 0
yaa/Modules/__init__.py

@@ -0,0 +1,10 @@
+from ..Modules.Auth import AuthService
+from ..Modules.LLM_API import APIService
+from ..Modules.Server import Server
+
+
+__all__ = [
+    "AuthService",
+    "APIService",
+    "Server"
+]

+ 6 - 0
yaa/Session/__init__.py

@@ -0,0 +1,6 @@
+from ..Session.Session import Session
+
+
+__all__ = [
+    "Session"
+]

+ 6 - 0
yaa/Tools/__init__.py

@@ -0,0 +1,6 @@
+from ..Tools.BaseTool import BaseTool
+
+
+__all__ = [
+    "BaseTool"
+]

+ 6 - 0
yaa/__init__.py

@@ -0,0 +1,6 @@
+"""yaa 智能体核心包"""
+import yaa
+
+__all__ = [
+    "yaa"
+]