mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-23 01:55:06 +02:00
Apply patch [skip ci]
This commit is contained in:
@@ -1262,7 +1262,7 @@ def _wrap_tool_with_reserved_keywords(
|
||||
return filtered_schema
|
||||
except Exception:
|
||||
# If schema creation fails, return original
|
||||
return original_schema
|
||||
return original_schema # type: ignore[no-any-return]
|
||||
|
||||
# Create the filtered tool instance
|
||||
filtered_tool = FilteredTool(
|
||||
@@ -1400,3 +1400,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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user