tools / system.py
Diagnostics, weather, location, Tor / Internet connectivity.
Tool: system_utility
| Action | Handler | Behaviour |
|---|---|---|
check_health | tool_check_health (line 208-404) | Platform / CPU / memory / disk via psutil; Docker version via subprocess; Internet ping (Cloudflare 1.1.1.1); Tor anonymity check; agent internals (LLM client, memory, graph, sandbox, biological-watchdog status). |
check_weather | tool_get_weather (line 12-160) | Open-Meteo first (geolocation + forecast), wttr.in fallback. Looks up location in profile_memory. 3 retries with Tor identity refresh. |
check_location | tool_check_location (line 186-196) | Searches profile for location/city/address keys. |
All HTTP calls honour the configured Tor SOCKS proxy when TOR_PROXY is set.