docs: update to docstrings of ChatAnthropic class (#18493)

**Description:** Update docstrings of ChatAnthropic class
**Issue:** Change to ChatAnthropic from ChatAnthropicMessages
**Dependencies:** None
**Lint and test**:  `make format`, `make lint` and `make test` passed
pull/18519/head
aditya thomas 4 months ago committed by GitHub
parent 63702a2044
commit 5c387a173f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -56,14 +56,18 @@ def _format_messages(messages: List[BaseMessage]) -> Tuple[Optional[str], List[D
class 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:

Loading…
Cancel
Save