chore: smart commit — update AGENTS.md, run ruff format, and apply small targeted fixes

This commit is contained in:
LIghtJUNction
2026-04-01 00:52:50 +08:00
parent 9c9d4d6db9
commit 360a13b227
91 changed files with 768 additions and 589 deletions

View File

@@ -67,7 +67,7 @@ class PythonTool(FunctionTool):
description: str = f"Run codes in an IPython shell. Current OS: {_OS_NAME}."
parameters: dict = field(default_factory=lambda: param_schema)
async def call(
async def call( # type: ignore[override]
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
) -> ToolExecResult:
if permission_error := check_admin_permission(context, "Python execution"):
@@ -93,7 +93,7 @@ class LocalPythonTool(FunctionTool):
parameters: dict = field(default_factory=lambda: param_schema)
async def call(
async def call( # type: ignore[override]
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
) -> ToolExecResult:
if permission_error := check_admin_permission(context, "Python execution"):