mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 02:37:52 +02:00
Apply patch [skip ci]
This commit is contained in:
@@ -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]:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user