mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
x
This commit is contained in:
parent
6d22f40a0b
commit
22cee5d983
@ -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,
|
||||
|
@ -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",
|
||||
}
|
||||
|
||||
|
@ -1027,7 +1027,7 @@ typing = [
|
||||
|
||||
[[package]]
|
||||
name = "langchain-tests"
|
||||
version = "0.3.15"
|
||||
version = "0.3.16"
|
||||
source = { directory = "../standard-tests" }
|
||||
dependencies = [
|
||||
{ name = "httpx" },
|
||||
|
Loading…
Reference in New Issue
Block a user