mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-19 14:20:55 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -318,8 +318,8 @@ class TestGptOssErrorHandling:
|
||||
# Create a tool that might cause parsing issues
|
||||
@tool
|
||||
def complex_tool(
|
||||
data: Dict[str, Any],
|
||||
nested: Optional[Dict[str, Any]] = None,
|
||||
data: dict[str, Any],
|
||||
nested: dict[str, Any] | None = None,
|
||||
) -> str:
|
||||
"""A complex tool with nested parameters.
|
||||
|
||||
@@ -360,3 +360,4 @@ class TestGptOssErrorHandling:
|
||||
# Should have no tool calls
|
||||
assert not response.tool_calls or len(response.tool_calls) == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user