The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
langchain[patch]: update removal target for LLMChain (#23373)
ccurme68e0ae32864a
diff --git a/libs/langchain/langchain/chains/llm.py b/libs/langchain/langchain/chains/llm.pyindex 874cfa96fa..e90578e4c8 100644--- a/libs/langchain/langchain/chains/llm.py+++ b/libs/langchain/langchain/chains/llm.py@@ -38,7 +38,7 @@ from langchain.chains.base import Chain@deprecated(since="0.1.17",alternative="RunnableSequence, e.g., `prompt | llm`",- removal="0.3.0",+ removal="1.0",)class LLMChain(Chain):"""Chain to run queries against LLMs.@@ -48,6 +48,7 @@ class LLMChain(Chain):.. code-block:: python+ from langchain_core.output_parsers import StrOutputParserfrom langchain_core.prompts import PromptTemplatefrom langchain_openai import OpenAI@@ -56,7 +57,7 @@ class LLMChain(Chain):input_variables=["adjective"], template=prompt_template)llm = OpenAI()- chain = prompt | llm+ chain = prompt | llm | StrOutputParser()chain.invoke("your adjective here")