mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 19:09:57 +00:00
lint
This commit is contained in:
@@ -740,7 +740,7 @@ class BaseChatModelV1(BaseLanguageModel[AIMessageV1], ABC):
|
||||
*,
|
||||
tool_choice: Optional[Union[str]] = None,
|
||||
**kwargs: Any,
|
||||
) -> Runnable[LanguageModelInput, BaseMessage]:
|
||||
) -> Runnable[LanguageModelInput, AIMessageV1]:
|
||||
"""Bind tools to the model.
|
||||
|
||||
Args:
|
||||
|
@@ -9,7 +9,7 @@ from typing import Annotated, Any, Optional
|
||||
from pydantic import SkipValidation, ValidationError
|
||||
|
||||
from langchain_core.exceptions import OutputParserException
|
||||
from langchain_core.messages import AIMessage, InvalidToolCall
|
||||
from langchain_core.messages import AIMessage, InvalidToolCall, ToolCall
|
||||
from langchain_core.messages.tool import invalid_tool_call
|
||||
from langchain_core.messages.tool import tool_call as create_tool_call
|
||||
from langchain_core.output_parsers.transform import BaseCumulativeTransformOutputParser
|
||||
@@ -26,7 +26,7 @@ def parse_tool_call(
|
||||
partial: bool = False,
|
||||
strict: bool = False,
|
||||
return_id: bool = True,
|
||||
) -> Optional[dict[str, Any]]:
|
||||
) -> Optional[ToolCall]:
|
||||
"""Parse a single tool call.
|
||||
|
||||
Args:
|
||||
|
Reference in New Issue
Block a user