mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
multiple: update docs urls to latest 2 (#26837)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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()
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user