chore(backend): add black/isort/flake8 + pre-commit

This commit is contained in:
Abhimanyu Saharan
2026-02-02 20:15:38 +05:30
parent 002bd08f33
commit a8f097817d
26 changed files with 299 additions and 67 deletions

View File

@@ -19,7 +19,14 @@ class OpenClawClient:
return None
return cls(url, token)
def tools_invoke(self, tool: str, args: dict[str, Any], *, session_key: str | None = None, timeout_s: float = 5.0) -> dict[str, Any]:
def tools_invoke(
self,
tool: str,
args: dict[str, Any],
*,
session_key: str | None = None,
timeout_s: float = 5.0,
) -> dict[str, Any]:
payload: dict[str, Any] = {"tool": tool, "args": args}
if session_key is not None:
payload["sessionKey"] = session_key