Skip to content

The agent engineering platform.

Use `invoke` instead of `__call__` (#16369)

Bob Linc6bd7778b003
diff --git a/docs/docs/integrations/llms/llamacpp.ipynb b/docs/docs/integrations/llms/llamacpp.ipynb
index c433baf1d0..853787fc19 100644
--- a/docs/docs/integrations/llms/llamacpp.ipynb
+++ b/docs/docs/integrations/llms/llamacpp.ipynb
@@ -316,7 +316,7 @@
"prompt = \"\"\"\n",
"Question: A rap battle between Stephen Colbert and John Oliver\n",
"\"\"\"\n",
- "llm(prompt)"
+ "llm.invoke(prompt)"
]
},
{
@@ -618,7 +618,7 @@
],
"source": [
"%%capture captured --no-stdout\n",
- "result = llm(\"Describe a person in JSON format:\")"
+ "result = llm.invoke(\"Describe a person in JSON format:\")"
]
},
{
@@ -674,7 +674,7 @@
],
"source": [
"%%capture captured --no-stdout\n",
- "result = llm(\"List of top-3 my favourite books:\")"
+ "result = llm.invoke(\"List of top-3 my favourite books:\")"
]
}
],