neuro-simulator 0.0.3__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/PKG-INFO +27 -9
  2. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/README.md +3 -2
  3. neuro_simulator-0.1.2/neuro_simulator/__init__.py +10 -0
  4. neuro_simulator-0.1.2/neuro_simulator/agent/__init__.py +8 -0
  5. neuro_simulator-0.1.2/neuro_simulator/agent/api.py +737 -0
  6. neuro_simulator-0.1.2/neuro_simulator/agent/core.py +471 -0
  7. neuro_simulator-0.1.2/neuro_simulator/agent/llm.py +104 -0
  8. neuro_simulator-0.1.2/neuro_simulator/agent/memory/__init__.py +4 -0
  9. neuro_simulator-0.1.2/neuro_simulator/agent/memory/manager.py +370 -0
  10. neuro_simulator-0.1.2/neuro_simulator/agent/memory.py +137 -0
  11. neuro_simulator-0.1.2/neuro_simulator/agent/tools/__init__.py +4 -0
  12. neuro_simulator-0.1.2/neuro_simulator/agent/tools/core.py +112 -0
  13. neuro_simulator-0.1.2/neuro_simulator/agent/tools.py +69 -0
  14. neuro_simulator-0.1.2/neuro_simulator/builtin_agent.py +83 -0
  15. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/cli.py +45 -0
  16. neuro_simulator-0.1.2/neuro_simulator/config.py +364 -0
  17. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/config.yaml.example +16 -2
  18. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/letta.py +75 -46
  19. neuro_simulator-0.1.2/neuro_simulator/log_handler.py +43 -0
  20. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/main.py +177 -30
  21. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/process_manager.py +5 -2
  22. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/stream_manager.py +6 -0
  23. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator.egg-info/PKG-INFO +27 -9
  24. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator.egg-info/SOURCES.txt +12 -1
  25. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator.egg-info/requires.txt +11 -5
  26. neuro_simulator-0.1.2/pyproject.toml +58 -0
  27. neuro-simulator-0.0.3/neuro_simulator/__init__.py +0 -1
  28. neuro-simulator-0.0.3/neuro_simulator/config.py +0 -226
  29. neuro-simulator-0.0.3/neuro_simulator/log_handler.py +0 -29
  30. neuro-simulator-0.0.3/setup.py +0 -60
  31. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/audio_synthesis.py +0 -0
  32. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/chatbot.py +0 -0
  33. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/media/neuro_start.mp4 +0 -0
  34. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/shared_state.py +0 -0
  35. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/stream_chat.py +0 -0
  36. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator/websocket_manager.py +0 -0
  37. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator.egg-info/dependency_links.txt +0 -0
  38. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator.egg-info/entry_points.txt +0 -0
  39. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/neuro_simulator.egg-info/top_level.txt +0 -0
  40. {neuro-simulator-0.0.3 → neuro_simulator-0.1.2}/setup.cfg +0 -0
@@ -1,13 +1,14 @@
1
- Metadata-Version: 2.1
2
- Name: neuro-simulator
3
- Version: 0.0.3
1
+ Metadata-Version: 2.4
2
+ Name: neuro_simulator
3
+ Version: 0.1.2
4
4
  Summary: Neuro Simulator Server
5
- Home-page: https://github.com/Moha-Master/neuro-simulator
6
- Author: Moha-Master
7
- Author-email: hongkongreporter@outlook.com
5
+ Author-email: Moha-Master <hongkongreporter@outlook.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/Moha-Master/neuro-simulator
8
+ Project-URL: Repository, https://github.com/Moha-Master/neuro-simulator
9
+ Project-URL: Issues, https://github.com/Moha-Master/neuro-simulator/issues
8
10
  Classifier: Development Status :: 4 - Beta
9
11
  Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: MIT License
11
12
  Classifier: Operating System :: OS Independent
12
13
  Classifier: Programming Language :: Python :: 3
13
14
  Classifier: Programming Language :: Python :: 3.8
@@ -17,6 +18,22 @@ Classifier: Programming Language :: Python :: 3.11
17
18
  Classifier: Programming Language :: Python :: 3.12
18
19
  Requires-Python: >=3.8
19
20
  Description-Content-Type: text/markdown
21
+ Requires-Dist: fastapi
22
+ Requires-Dist: uvicorn
23
+ Requires-Dist: google-genai
24
+ Requires-Dist: azure-cognitiveservices-speech
25
+ Requires-Dist: letta-client
26
+ Requires-Dist: openai
27
+ Requires-Dist: pyyaml
28
+ Requires-Dist: pydantic
29
+ Requires-Dist: jinja2
30
+ Requires-Dist: python-multipart
31
+ Requires-Dist: mutagen
32
+ Provides-Extra: dev
33
+ Requires-Dist: pytest>=6.0; extra == "dev"
34
+ Requires-Dist: pytest-cov; extra == "dev"
35
+ Requires-Dist: black; extra == "dev"
36
+ Requires-Dist: flake8; extra == "dev"
20
37
 
21
38
  # Neuro-Simulator 服务端
22
39
 
@@ -46,7 +63,7 @@ neuro_simulator/
46
63
  ├── shared_state.py # 全局状态管理
47
64
  ├── log_handler.py # 日志处理模块
48
65
  ├── requirements.txt # Python 依赖列表
49
- ├── setup.py # Python 包安装配置
66
+ ├── pyproject.toml # Python 包安装配置
50
67
  ├── cli.py # 命令行启动脚本
51
68
  ├── config.yaml.example # 自带的备用配置模板
52
69
  └── media/ # 自带的备用媒体文件
@@ -64,7 +81,8 @@ working_dir_example/ # 工作目录结构,请将这个目录重命名和
64
81
  ## 安装与配置
65
82
 
66
83
  0. **在运行server前,必须有已经配置完成的Letta Agent。**
67
- 1. 复制一份 `../docs/working_dir_example` 到你想要的位置,作为配置文件目录
84
+ 1. 复制一份 `../docs/working_dir_example` 到你想要的位置,作为配置文件目录.
85
+ - 程序会在未指定 `--dir` 的情况下自动生成一个工作目录,路径为 `~/.config/neuro-simulator/`
68
86
  2. 然后进入配置文件目录,复制 `config.yaml.example` 到 `config.yaml`
69
87
  3. 编辑 `config.yaml` 文件,填入必要的 API 密钥和配置项:
70
88
  - Letta Token 和 Agent ID
@@ -26,7 +26,7 @@ neuro_simulator/
26
26
  ├── shared_state.py # 全局状态管理
27
27
  ├── log_handler.py # 日志处理模块
28
28
  ├── requirements.txt # Python 依赖列表
29
- ├── setup.py # Python 包安装配置
29
+ ├── pyproject.toml # Python 包安装配置
30
30
  ├── cli.py # 命令行启动脚本
31
31
  ├── config.yaml.example # 自带的备用配置模板
32
32
  └── media/ # 自带的备用媒体文件
@@ -44,7 +44,8 @@ working_dir_example/ # 工作目录结构,请将这个目录重命名和
44
44
  ## 安装与配置
45
45
 
46
46
  0. **在运行server前,必须有已经配置完成的Letta Agent。**
47
- 1. 复制一份 `../docs/working_dir_example` 到你想要的位置,作为配置文件目录
47
+ 1. 复制一份 `../docs/working_dir_example` 到你想要的位置,作为配置文件目录.
48
+ - 程序会在未指定 `--dir` 的情况下自动生成一个工作目录,路径为 `~/.config/neuro-simulator/`
48
49
  2. 然后进入配置文件目录,复制 `config.yaml.example` 到 `config.yaml`
49
50
  3. 编辑 `config.yaml` 文件,填入必要的 API 密钥和配置项:
50
51
  - Letta Token 和 Agent ID
@@ -0,0 +1,10 @@
1
+ # neuro_simulator/__init__.py
2
+
3
+ # 导出主要模块以便于使用
4
+ from .builtin_agent import initialize_builtin_agent, get_builtin_response, reset_builtin_agent_memory
5
+
6
+ __all__ = [
7
+ "initialize_builtin_agent",
8
+ "get_builtin_response",
9
+ "reset_builtin_agent_memory"
10
+ ]
@@ -0,0 +1,8 @@
1
+ # agent/__init__.py
2
+ """
3
+ Agent module for Neuro Simulator Server
4
+ """
5
+
6
+ from .core import Agent
7
+
8
+ __all__ = ["Agent"]