Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-22 15:20:42 +00:00
parent d97d18ad35
commit 20befcb86a
@@ -1265,10 +1265,10 @@ def _wrap_tool_with_reserved_keywords(
f"{original_schema.__name__}Filtered",
**fields_to_keep,
)
return filtered_schema # type: ignore[no-any-return]
return filtered_schema
except Exception:
# If schema creation fails, return original
return original_schema # type: ignore[no-any-return]
return original_schema
# Create the filtered tool instance
filtered_tool = FilteredTool(
@@ -1410,3 +1410,4 @@ def _get_runtime_arg(tool: BaseTool) -> Optional[str]: