Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

style(modes): ruff format the assistant-mode tools

rubenluetke10-beep94f8009b2771
diff --git a/jarvis/plugins/tool/assistant_mode.py b/jarvis/plugins/tool/assistant_mode.py
index b10643086c..e36ab1366d 100644
--- a/jarvis/plugins/tool/assistant_mode.py
+++ b/jarvis/plugins/tool/assistant_mode.py
@@ -53,8 +53,7 @@ class SwitchModeTool:
"slug": {
"type": "string",
"description": (
- "The mode id to switch to, e.g. 'friend'. Must be one that "
- "already exists."
+ "The mode id to switch to, e.g. 'friend'. Must be one that already exists."
),
},
},
@@ -177,14 +176,10 @@ class SaveModeTool:
except modes.ModeError as exc:
return ToolResult(success=False, output=None, error=str(exc))
except OSError as exc:
- return ToolResult(
- success=False, output=None, error=f"Could not save the mode: {exc}"
- )
+ return ToolResult(success=False, output=None, error=f"Could not save the mode: {exc}")
if not bool(args.get("activate")):
- return ToolResult(
- success=True, output=f"Saved the {mode.name} mode.", error=None
- )
+ return ToolResult(success=True, output=f"Saved the {mode.name} mode.", error=None)
try:
modes.set_active(mode.slug)
except modes.ModeError as exc: