The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: update to docstrings of ChatAnthropic class (#18493)
aditya thomas5c387a173f02
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.pyindex 651a232892..0a81b81b3b 100644--- a/libs/partners/anthropic/langchain_anthropic/chat_models.py+++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py@@ -56,14 +56,18 @@ def _format_messages(messages: List[BaseMessage]) -> Tuple[Optional[str], List[Dclass ChatAnthropic(BaseChatModel):- """ChatAnthropicMessages chat model.+ """Anthropic chat model.++ To use, you should have the packages ``anthropic`` and ``langchain-anthropic``+ installed, and the environment variable ANTHROPIC_API_KEY set with your API key,+ or pass it as a named parameter to the constructor.Example:.. code-block:: python- from langchain_anthropic import ChatAnthropicMessages+ from langchain_anthropic import ChatAnthropic- model = ChatAnthropicMessages()+ model = ChatAnthropic()"""class Config: