fix format

This commit is contained in:
liuyongbin
2025-12-14 14:03:41 +08:00
parent b18993adf7
commit b1ddd98552
5 changed files with 83 additions and 7 deletions

View File

@@ -285,7 +285,7 @@ def parse_action(response: str) -> dict[str, Any]:
if response.startswith("do"):
# Use AST parsing instead of eval for safety
try:
tree = ast.parse(response, mode='eval')
tree = ast.parse(response, mode="eval")
if not isinstance(tree.body, ast.Call):
raise ValueError("Expected a function call")