The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: add deprecation notice for PipelinePromptTemplate (#31999)
董哥的黑板报553ac1863b99
diff --git a/docs/docs/how_to/prompts_composition.ipynb b/docs/docs/how_to/prompts_composition.ipynbindex 7573c3de8d..bdadc2db79 100644--- a/docs/docs/how_to/prompts_composition.ipynb+++ b/docs/docs/how_to/prompts_composition.ipynb@@ -178,6 +178,18 @@"## Using PipelinePrompt"]},+ {+ "cell_type": "markdown",+ "id": "8ccadbae",+ "metadata": {},+ "source": [+ ":::warning Deprecated\n",+ "\n",+ "PipelinePromptTemplate is deprecated; for more information, please refer to [PipelinePromptTemplate](https://python.langchain.com/api_reference/core/prompts/langchain_core.prompts.pipeline.PipelinePromptTemplate.html).\n",+ "\n",+ ":::"+ ]+ },{"cell_type": "markdown","id": "0a5892f9-e4d8-4b7c-b6a5-4651539b9734",diff --git a/libs/core/langchain_core/prompts/pipeline.py b/libs/core/langchain_core/prompts/pipeline.pyindex f1f5786f1e..3b0160201d 100644--- a/libs/core/langchain_core/prompts/pipeline.py+++ b/libs/core/langchain_core/prompts/pipeline.py@@ -18,16 +18,14 @@ def _get_inputs(inputs: dict, input_variables: list[str]) -> dict:since="0.3.22",removal="1.0",message=(- "This class is deprecated. Please see the docstring below or at the link"- " for a replacement option: "- "https://python.langchain.com/api_reference/core/prompts/langchain_core.prompts.pipeline.PipelinePromptTemplate.html"+ "This class is deprecated in favor of chaining individual prompts together."),)class PipelinePromptTemplate(BasePromptTemplate):- """[DEPRECATED] Pipeline prompt template.+ """Pipeline prompt template.This has been deprecated in favor of chaining individual prompts together in your- code. E.g. using a for loop, you could do:+ code; e.g. using a for loop, you could do:.. code-block:: python