The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Upgraded shaleprotocol to use langchain v0.2 removed deprecated classes (#24320)
Srijan Dubeyef07308c304a
diff --git a/docs/docs/integrations/providers/shaleprotocol.md b/docs/docs/integrations/providers/shaleprotocol.mdindex eaafb4a3fd..553778cede 100644--- a/docs/docs/integrations/providers/shaleprotocol.md+++ b/docs/docs/integrations/providers/shaleprotocol.md@@ -21,7 +21,7 @@ For example```pythonfrom langchain_openai import OpenAIfrom langchain_core.prompts import PromptTemplate-from langchain.chains import LLMChain+from langchain_core.output_parsers import StrOutputParserimport osos.environ['OPENAI_API_BASE'] = "https://shale.live/v1"@@ -35,10 +35,11 @@ template = """Question: {question}prompt = PromptTemplate.from_template(template)-llm_chain = LLMChain(prompt=prompt, llm=llm)++llm_chain = prompt | llm | StrOutputParser()question = "What NFL team won the Super Bowl in the year Justin Beiber was born?"-llm_chain.run(question)+llm_chain.invoke(question)```