Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-22 15:19:41 +00:00
parent a3ebd02e71
commit 4b2fc401ff
@@ -1232,7 +1232,7 @@ def _wrap_tool_with_reserved_keywords(
# If no reserved args to filter, return original
if not reserved_args:
return original_schema
return original_schema # type: ignore[no-any-return]
# Create a new schema class dynamically
from pydantic import create_model
@@ -1406,3 +1406,4 @@ def _get_runtime_arg(tool: BaseTool) -> Optional[str]:
reserved_args = _get_reserved_keyword_args(tool)
return "runtime" if "runtime" in reserved_args else None