docs: Fix URL formatting in deprecation warnings (#23075)

**Description**

Updated the URLs in deprecation warning messages. The URLs were
previously written as raw strings and are now formatted to be clickable
HTML links.

Example of a broken link in the current API Reference:
https://api.python.langchain.com/en/latest/chains/langchain.chains.openai_functions.extraction.create_extraction_chain_pydantic.html

<img width="942" alt="Screenshot 2024-06-18 at 13 21 07"
src="https://github.com/langchain-ai/langchain/assets/4854600/a1b1863c-cd03-4af2-a9bc-70375407fb00">
This commit is contained in:
Artem Mukhin
2024-06-18 20:49:58 +02:00
committed by GitHub
parent c6660df58e
commit e271f75bee
9 changed files with 25 additions and 25 deletions

View File

@@ -54,7 +54,7 @@ class ZapierToolkit(BaseToolkit):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
"https://nla.zapier.com/sunset/ for details"
"<https://nla.zapier.com/sunset/> for details"
),
)
return self.tools

View File

@@ -22,7 +22,7 @@ DEFAULT_CONNECTION_STRING = "postgresql://postgres:mypassword@localhost/chat_his
"You can swap to using the `PostgresChatMessageHistory`"
" implementation in `langchain_postgres`. "
"Please do not submit further PRs to this class."
"See https://github.com/langchain-ai/langchain-postgres"
"See <https://github.com/langchain-ai/langchain-postgres>"
),
alternative="from langchain_postgres import PostgresChatMessageHistory;",
pending=True,

View File

@@ -134,7 +134,7 @@ class ZapierNLARunAction(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
"https://nla.zapier.com/sunset/ for details"
"<https://nla.zapier.com/sunset/> for details"
),
)
return self.api_wrapper.run_as_str(self.action_id, instructions, self.params)
@@ -149,7 +149,7 @@ class ZapierNLARunAction(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
"https://nla.zapier.com/sunset/ for details"
"<https://nla.zapier.com/sunset/> for details"
),
)
return await self.api_wrapper.arun_as_str(
@@ -186,7 +186,7 @@ class ZapierNLAListActions(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
"https://nla.zapier.com/sunset/ for details"
"<https://nla.zapier.com/sunset/> for details"
),
)
return self.api_wrapper.list_as_str()
@@ -201,7 +201,7 @@ class ZapierNLAListActions(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
"https://nla.zapier.com/sunset/ for details"
"<https://nla.zapier.com/sunset/> for details"
),
)
return await self.api_wrapper.alist_as_str()

View File

@@ -218,7 +218,7 @@ def _results_to_docs(docs_and_scores: Any) -> List[Document]:
"Please read the guidelines in the doc-string of this class "
"to follow prior to migrating as there are some differences "
"between the implementations. "
"See https://github.com/langchain-ai/langchain-postgres for details about"
"See <https://github.com/langchain-ai/langchain-postgres> for details about"
"the new implementation."
),
alternative="from langchain_postgres import PGVector;",