mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
style: more work for refs (#33508)
Largely: - Remove explicit `"Default is x"` since new refs show default inferred from sig - Inline code (useful for eventual parsing) - Fix code block rendering (indentations)
This commit is contained in:
@@ -1530,7 +1530,7 @@ class ChatAnthropic(BaseChatModel):
|
||||
|
||||
@classmethod
|
||||
def get_lc_namespace(cls) -> list[str]:
|
||||
"""Get the namespace of the langchain object."""
|
||||
"""Get the namespace of the LangChain object."""
|
||||
return ["langchain", "chat_models", "anthropic"]
|
||||
|
||||
@property
|
||||
|
||||
@@ -29,7 +29,7 @@ class ToolsOutputParser(BaseGenerationOutputParser):
|
||||
"""Parse a list of candidate model Generations into a specific format.
|
||||
|
||||
Args:
|
||||
result: A list of Generations to be parsed. The Generations are assumed
|
||||
result: A list of `Generation` to be parsed. The Generations are assumed
|
||||
to be different candidate outputs for a single model input.
|
||||
partial: (Not used) Whether the result is a partial result. If `True`, the
|
||||
parser may return a partial result, which may not be complete or valid.
|
||||
|
||||
@@ -15,7 +15,7 @@ MODEL = "claude-3-5-haiku-latest"
|
||||
|
||||
|
||||
class TestAnthropicStandard(ChatModelIntegrationTests):
|
||||
"""Use the standard ChatModel integration tests against the ChatAnthropic class."""
|
||||
"""Use standard chat model integration tests against the `ChatAnthropic` class."""
|
||||
|
||||
@property
|
||||
def chat_model_class(self) -> type[BaseChatModel]:
|
||||
|
||||
@@ -9,7 +9,7 @@ from langchain_anthropic import ChatAnthropic
|
||||
|
||||
|
||||
class TestAnthropicStandard(ChatModelUnitTests):
|
||||
"""Use the standard ChatModel unit tests against the ChatAnthropic class."""
|
||||
"""Use the standard chat model unit tests against the `ChatAnthropic` class."""
|
||||
|
||||
@property
|
||||
def chat_model_class(self) -> type[BaseChatModel]:
|
||||
|
||||
Reference in New Issue
Block a user