Improved the system prompt

This commit is contained in:
Niels Geens
2024-11-04 14:10:49 +01:00
parent b4c70cd5b8
commit 5da6dca5ec
7 changed files with 150 additions and 214 deletions

View File

@@ -109,7 +109,7 @@ class SystemMetrics:
context.set("disk_total", str(disk.total))
# Context usage (0-100)
context.set("context", str(round(context_usage * 100)))
context.set("context_usage", str(round(context_usage * 100)))
# Standard input buffer size
context.set("stdin", "0") # Set by agent
@@ -119,4 +119,4 @@ class SystemMetrics:
def stop(self):
"""Stop the monitoring thread and clean up."""
self._stop_event.set()
self._monitor_thread.join()
self._monitor_thread.join()