mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-16 16:11:02 +00:00
fmt
This commit is contained in:
parent
0c1a576218
commit
d13d101c66
@ -1075,6 +1075,7 @@ Callbacks = Optional[Union[list[BaseCallbackHandler], BaseCallbackManager]]
|
|||||||
|
|
||||||
from typing_extensions import TypedDict
|
from typing_extensions import TypedDict
|
||||||
|
|
||||||
|
|
||||||
class _ToolSchema(TypedDict):
|
class _ToolSchema(TypedDict):
|
||||||
name: str
|
name: str
|
||||||
description: str
|
description: str
|
||||||
|
@ -272,7 +272,9 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
|
|||||||
)
|
)
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
||||||
def _standardize_tools(self, tools: Optional[Sequence]) -> Optional[List[_ToolSchema]]:
|
def _standardize_tools(
|
||||||
|
self, tools: Optional[Sequence]
|
||||||
|
) -> Optional[List[_ToolSchema]]:
|
||||||
"""Convert tools to standard format for tracing."""
|
"""Convert tools to standard format for tracing."""
|
||||||
if not tools:
|
if not tools:
|
||||||
return tools
|
return tools
|
||||||
|
@ -5,9 +5,10 @@ from __future__ import annotations
|
|||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
import warnings
|
import warnings
|
||||||
|
from collections.abc import Sequence
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
from typing import TYPE_CHECKING, Any, Optional, Union, Sequence
|
from typing import TYPE_CHECKING, Any, Optional, Union
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
from langsmith import Client
|
from langsmith import Client
|
||||||
|
Loading…
Reference in New Issue
Block a user