This commit is contained in:
Eugene Yurtsev 2025-03-28 13:56:10 -04:00
parent 6d22f40a0b
commit 22cee5d983
3 changed files with 8 additions and 7 deletions

View File

@ -659,7 +659,8 @@ class ChildTool(BaseTool):
return (), tool_input.copy()
else:
# This code path is not expected to be reachable.
raise TypeError(f"Invalid tool input type: {type(tool_input)}")
msg = f"Invalid tool input type: {type(tool_input)}"
raise TypeError(msg)
def run(
self,

View File

@ -2,16 +2,12 @@
import inspect
import json
import pytest
import sys
import textwrap
import threading
from datetime import datetime
from enum import Enum
from functools import partial
from pydantic import BaseModel, Field, ValidationError
from pydantic.v1 import BaseModel as BaseModelV1
from pydantic.v1 import ValidationError as ValidationErrorV1
from typing import (
Annotated,
Any,
@ -23,6 +19,11 @@ from typing import (
Union,
cast,
)
import pytest
from pydantic import BaseModel, Field, ValidationError
from pydantic.v1 import BaseModel as BaseModelV1
from pydantic.v1 import ValidationError as ValidationErrorV1
from typing_extensions import TypedDict
from langchain_core import tools
@ -2690,4 +2691,3 @@ def test_tool_invoke_does_not_mutate_inputs() -> None:
"id": "call_0_82c17db8-95df-452f-a4c2-03f809022134",
"type": "tool_call",
}

View File

@ -1027,7 +1027,7 @@ typing = [
[[package]]
name = "langchain-tests"
version = "0.3.15"
version = "0.3.16"
source = { directory = "../standard-tests" }
dependencies = [
{ name = "httpx" },