docs: Update function "run" to "invoke" in llm_symbolic_math.ipynb (#19713)

This patch updates multiple function "run" to "invoke" in
llm_symbolic_math.ipynb.

Without this patch, you see following message.
The function `run` was deprecated in LangChain 0.1.0
 and will be removed in 0.2.0. Use invoke instead.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
pull/19733/head
standby24x7 2 months ago committed by GitHub
parent 4a49fc5a95
commit 36090c84f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,7 +45,7 @@
} }
], ],
"source": [ "source": [
"llm_symbolic_math.run(\"What is the derivative of sin(x)*exp(x) with respect to x?\")" "llm_symbolic_math.invoke(\"What is the derivative of sin(x)*exp(x) with respect to x?\")"
] ]
}, },
{ {
@ -65,7 +65,7 @@
} }
], ],
"source": [ "source": [
"llm_symbolic_math.run(\n", "llm_symbolic_math.invoke(\n",
" \"What is the integral of exp(x)*sin(x) + exp(x)*cos(x) with respect to x?\"\n", " \"What is the integral of exp(x)*sin(x) + exp(x)*cos(x) with respect to x?\"\n",
")" ")"
] ]
@ -94,7 +94,7 @@
} }
], ],
"source": [ "source": [
"llm_symbolic_math.run('Solve the differential equation y\" - y = e^t')" "llm_symbolic_math.invoke('Solve the differential equation y\" - y = e^t')"
] ]
}, },
{ {
@ -114,7 +114,7 @@
} }
], ],
"source": [ "source": [
"llm_symbolic_math.run(\"What are the solutions to this equation y^3 + 1/3y?\")" "llm_symbolic_math.invoke(\"What are the solutions to this equation y^3 + 1/3y?\")"
] ]
}, },
{ {
@ -134,7 +134,7 @@
} }
], ],
"source": [ "source": [
"llm_symbolic_math.run(\"x = y + 5, y = z - 3, z = x * y. Solve for x, y, z\")" "llm_symbolic_math.invoke(\"x = y + 5, y = z - 3, z = x * y. Solve for x, y, z\")"
] ]
} }
], ],

Loading…
Cancel
Save