mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +00:00
fmt
This commit is contained in:
parent
0c1a576218
commit
d13d101c66
@ -1075,7 +1075,8 @@ Callbacks = Optional[Union[list[BaseCallbackHandler], BaseCallbackManager]]
|
||||
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
|
||||
class _ToolSchema(TypedDict):
|
||||
name: str
|
||||
description: str
|
||||
parameters: dict
|
||||
parameters: dict
|
||||
|
@ -272,7 +272,9 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
|
||||
)
|
||||
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."""
|
||||
if not tools:
|
||||
return tools
|
||||
|
@ -5,9 +5,10 @@ from __future__ import annotations
|
||||
import copy
|
||||
import logging
|
||||
import warnings
|
||||
from collections.abc import Sequence
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
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 langsmith import Client
|
||||
|
Loading…
Reference in New Issue
Block a user