neuro-simulator 0.4.2__tar.gz → 0.4.3__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.
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/PKG-INFO +1 -1
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/manager.py +1 -1
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/model_spin.py +2 -2
- neuro_simulator-0.4.3/neuro_simulator/agent/tools/model_zoom.py +41 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/PKG-INFO +1 -1
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/SOURCES.txt +1 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/pyproject.toml +1 -1
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/README.md +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/core.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/llm.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/memory/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/memory/manager.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/memory_prompt.txt +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/neuro_prompt.txt +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/add_temp_memory.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/add_to_core_memory_block.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/base.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/create_core_memory_block.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/delete_core_memory_block.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/get_core_memory_block.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/get_core_memory_blocks.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/remove_from_core_memory_block.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/speak.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/update_core_memory_block.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/api/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/api/system.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/assets/neuro_start.mp4 +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/cli.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/config.yaml.example +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/core/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/core/agent_factory.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/core/agent_interface.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/core/application.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/core/config.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/core/path_manager.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/services/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/services/audience.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/services/audio.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/services/builtin.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/services/letta.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/services/stream.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/utils/__init__.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/utils/logging.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/utils/process.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/utils/queue.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/utils/state.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/utils/websocket.py +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/dependency_links.txt +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/entry_points.txt +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/requires.txt +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/top_level.txt +0 -0
- {neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/setup.cfg +0 -0
@@ -80,7 +80,7 @@ class ToolManager:
|
|
80
80
|
def _load_allocations(self):
|
81
81
|
"""Loads tool allocations from JSON files, creating defaults if they don't exist."""
|
82
82
|
default_allocations = {
|
83
|
-
"neuro_agent": ["speak", "get_core_memory_blocks", "get_core_memory_block", "model_spin"],
|
83
|
+
"neuro_agent": ["speak", "get_core_memory_blocks", "get_core_memory_block", "model_spin", "model_zoom"],
|
84
84
|
"memory_agent": ["add_temp_memory", "create_core_memory_block", "update_core_memory_block", "delete_core_memory_block", "add_to_core_memory_block", "remove_from_core_memory_block", "get_core_memory_blocks", "get_core_memory_block"]
|
85
85
|
}
|
86
86
|
|
@@ -20,7 +20,7 @@ class ModelSpinTool(BaseTool):
|
|
20
20
|
|
21
21
|
@property
|
22
22
|
def description(self) -> str:
|
23
|
-
return "Makes
|
23
|
+
return "Makes model spin once, dont got too dizzy when spining lol."
|
24
24
|
|
25
25
|
@property
|
26
26
|
def parameters(self) -> List[Dict[str, Any]]:
|
@@ -38,4 +38,4 @@ class ModelSpinTool(BaseTool):
|
|
38
38
|
return {"status": "success", "message": "Spin command sent."}
|
39
39
|
except Exception as e:
|
40
40
|
logger.error(f"Error in {self.name} tool: {e}", exc_info=True)
|
41
|
-
return {"status": "error", "message": str(e)}
|
41
|
+
return {"status": "error", "message": str(e)}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# neuro_simulator/agent/tools/model_zoom.py
|
2
|
+
import logging
|
3
|
+
from typing import Dict, Any, List
|
4
|
+
|
5
|
+
from neuro_simulator.agent.tools.base import BaseTool
|
6
|
+
from neuro_simulator.services.stream import live_stream_manager
|
7
|
+
|
8
|
+
logger = logging.getLogger(__name__.replace("neuro_simulator", "server", 1))
|
9
|
+
|
10
|
+
class ModelZoomTool(BaseTool):
|
11
|
+
"""A tool to make the client-side avatar zoom in."""
|
12
|
+
|
13
|
+
def __init__(self, **kwargs):
|
14
|
+
# The base class might pass memory_manager, so we accept it but don't use it.
|
15
|
+
pass
|
16
|
+
|
17
|
+
@property
|
18
|
+
def name(self) -> str:
|
19
|
+
return "model_zoom"
|
20
|
+
|
21
|
+
@property
|
22
|
+
def description(self) -> str:
|
23
|
+
return "Makes model zoom in, just like got closer to fans."
|
24
|
+
|
25
|
+
@property
|
26
|
+
def parameters(self) -> List[Dict[str, Any]]:
|
27
|
+
return []
|
28
|
+
|
29
|
+
async def execute(self, **kwargs: Any) -> Dict[str, Any]:
|
30
|
+
"""
|
31
|
+
Sends a WebSocket command to the client to trigger the avatar zoom animation.
|
32
|
+
"""
|
33
|
+
logger.info(f"Executing {self.name} tool.")
|
34
|
+
try:
|
35
|
+
await live_stream_manager.event_queue.put({
|
36
|
+
"type": "model_zoom"
|
37
|
+
})
|
38
|
+
return {"status": "success", "message": "Zoom command sent."}
|
39
|
+
except Exception as e:
|
40
|
+
logger.error(f"Error in {self.name} tool: {e}", exc_info=True)
|
41
|
+
return {"status": "error", "message": str(e)}
|
@@ -26,6 +26,7 @@ neuro_simulator/agent/tools/get_core_memory_block.py
|
|
26
26
|
neuro_simulator/agent/tools/get_core_memory_blocks.py
|
27
27
|
neuro_simulator/agent/tools/manager.py
|
28
28
|
neuro_simulator/agent/tools/model_spin.py
|
29
|
+
neuro_simulator/agent/tools/model_zoom.py
|
29
30
|
neuro_simulator/agent/tools/remove_from_core_memory_block.py
|
30
31
|
neuro_simulator/agent/tools/speak.py
|
31
32
|
neuro_simulator/agent/tools/update_core_memory_block.py
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/add_temp_memory.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator/agent/tools/get_core_memory_block.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neuro_simulator-0.4.2 → neuro_simulator-0.4.3}/neuro_simulator.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|