mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
anthropic[minor]: add tool calling (#18554)
This commit is contained in:
@@ -11,6 +11,7 @@ from langchain.schema import (
|
||||
ChatResult,
|
||||
)
|
||||
from langchain_community.chat_models.anthropic import ChatAnthropic
|
||||
from langchain_core._api.deprecation import deprecated
|
||||
from langchain_core.language_models import BaseChatModel
|
||||
from langchain_core.messages import (
|
||||
AIMessage,
|
||||
@@ -123,6 +124,11 @@ def _destrip(tool_input: Any) -> Any:
|
||||
raise ValueError
|
||||
|
||||
|
||||
@deprecated(
|
||||
since="0.0.54",
|
||||
removal="0.2",
|
||||
alternative_import="langchain_anthropic.experimental.ChatAnthropicTools",
|
||||
)
|
||||
class AnthropicFunctions(BaseChatModel):
|
||||
"""Chat model for interacting with Anthropic functions."""
|
||||
|
||||
|
Reference in New Issue
Block a user