multiple: update docs urls to latest 2 (#26837)

This commit is contained in:
Erick Friis
2024-09-30 17:37:07 -07:00
committed by GitHub
parent 4a32cc3c66
commit 7ecd720120
30 changed files with 77 additions and 75 deletions

View File

@@ -8,7 +8,7 @@
Please see the migration guide for information on how to migrate existing
agents to modern langgraph agents:
https://python.langchain.com/v0.2/docs/how_to/migrate_agent/
https://python.langchain.com/docs/how_to/migrate_agent/
Agents use language models to choose a sequence of actions to take.

View File

@@ -19,7 +19,7 @@ information on how to implement a custom chat model.
To implement a custom Chat Model, inherit from `BaseChatModel`. See
the following guide for more information on how to implement a custom Chat Model:
https://python.langchain.com/v0.2/docs/how_to/custom_chat_model/
https://python.langchain.com/docs/how_to/custom_chat_model/
**LLMs**
@@ -34,7 +34,7 @@ string under the hood before being passed to the underlying model.
To implement a custom LLM, inherit from `BaseLLM` or `LLM`.
Please see the following guide for more information on how to implement a custom LLM:
https://python.langchain.com/v0.2/docs/how_to/custom_llm/
https://python.langchain.com/docs/how_to/custom_llm/
""" # noqa: E501

View File

@@ -189,7 +189,7 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
+----------------------------------+--------------------------------------------------------------------+-------------------+
Follow the guide for more information on how to implement a custom Chat Model:
[Guide](https://python.langchain.com/v0.2/docs/how_to/custom_chat_model/).
[Guide](https://python.langchain.com/docs/how_to/custom_chat_model/).
""" # noqa: E501
@@ -1103,7 +1103,9 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
def bind_tools(
self,
tools: Sequence[Union[typing.Dict[str, Any], type, Callable, BaseTool]], # noqa: UP006
tools: Sequence[
Union[typing.Dict[str, Any], type, Callable, BaseTool] # noqa: UP006
],
**kwargs: Any,
) -> Runnable[LanguageModelInput, BaseMessage]:
raise NotImplementedError()

View File

@@ -1417,7 +1417,7 @@ class LLM(BaseLLM):
Please see the following guide for more information on how to
implement a custom LLM:
https://python.langchain.com/v0.2/docs/how_to/custom_llm/
https://python.langchain.com/docs/how_to/custom_llm/
"""
@abstractmethod