Skip to content

Agent Zero AI framework

debug messages cleanup

frdelff29f2b12d4c
diff --git a/prompts/default/memory.memories_sum.sys.md b/prompts/default/memory.memories_sum.sys.md
index d29986e99..a542abfe5 100644
--- a/prompts/default/memory.memories_sum.sys.md
+++ b/prompts/default/memory.memories_sum.sys.md
@@ -7,11 +7,21 @@
- The response format is a JSON array of text notes containing facts to memorize
- If the history does not contain any useful information, the response will be an empty JSON array.
-# Example
+# Correct output examples
~~~json
[
"User's name is John Doe",
- "User's age is 30"
+ "User's dog name is Max",
+ "AsyncRaceError in primary_modules.py was fixed by a thread lock on line 123"
+]
+~~~
+
+# Wrong output examples
+~~~json
+[
+ "User's name",
+ "Today is Monday",
+ "Market inquiry",
]
~~~
@@ -19,4 +29,5 @@
- Focus only on relevant details and facts like names, IDs, instructions, opinions etc.
- Do not include irrelevant details that are of no use in the future
- Do not memorize facts that change like time, date etc.
-- Do not add your own details that are not specifically mentioned in the history
\ No newline at end of file
+- Do not add your own details that are not specifically mentioned in the history
+- Never memorize vague or incomplete information
\ No newline at end of file
diff --git a/python/helpers/kokoro_tts.py b/python/helpers/kokoro_tts.py
index 17a57c385..0e5f2b431 100644
--- a/python/helpers/kokoro_tts.py
+++ b/python/helpers/kokoro_tts.py
@@ -9,6 +9,7 @@ from python.helpers import runtime
from python.helpers.print_style import PrintStyle
warnings.filterwarnings("ignore", category=FutureWarning)
+warnings.filterwarnings("ignore", category=UserWarning)
_pipeline = None
_voice = "am_puck,am_onyx"
@@ -39,7 +40,7 @@ async def _preload():
if not _pipeline:
PrintStyle.standard("Loading Kokoro TTS model...")
from kokoro import KPipeline
- _pipeline = KPipeline(lang_code="a")
+ _pipeline = KPipeline(lang_code="a", repo_id="hexgrad/Kokoro-82M")
finally:
is_updating_model = False
diff --git a/python/helpers/mcp_handler.py b/python/helpers/mcp_handler.py
index 9d8b855c3..b71af7acf 100644
--- a/python/helpers/mcp_handler.py
+++ b/python/helpers/mcp_handler.py
@@ -505,11 +505,11 @@ class MCPConfig(BaseModel):
def __init__(self, servers_list: List[Dict[str, Any]]):
from collections.abc import Mapping, Iterable
- # DEBUG: Print the received servers_list
- if servers_list:
- PrintStyle(background_color="blue", font_color="white", padding=True).print(
- f"MCPConfig.__init__ received servers_list: {servers_list}"
- )
+ # # DEBUG: Print the received servers_list
+ # if servers_list:
+ # PrintStyle(background_color="blue", font_color="white", padding=True).print(
+ # f"MCPConfig.__init__ received servers_list: {servers_list}"
+ # )
# This empties the servers list if MCPConfig is a Pydantic model and servers is a field.
# If servers is a field like `servers: List[MCPServer] = Field(default_factory=list)`,
diff --git a/run_ui.py b/run_ui.py
index e6c3de72a..07ae1c82f 100644
--- a/run_ui.py
+++ b/run_ui.py
@@ -221,9 +221,8 @@ def run():
"/mcp": ASGIMiddleware(app=mcp_server.DynamicMcpProxy.get_instance()), # type: ignore
},
)
- PrintStyle().debug("Registered middleware for MCP and MCP token")
- PrintStyle().debug(f"Starting server at {host}:{port}...")
+ PrintStyle().debug(f"Starting server at http://{host}:{port} ...")
server = make_server(
host=host,