From 009cc3bf5019d17601b00eee82f0299ca0f46b07 Mon Sep 17 00:00:00 2001 From: Tik1993 <81949896+Tik1993@users.noreply.github.com> Date: Thu, 28 Aug 2025 07:31:46 -0700 Subject: [PATCH] docs(docs): added `content=` keyword when creating `SystemMessage` and `HumanMessage` (#32734) Description: Added the content= keyword when creating SystemMessage and HumanMessage in the messages list, making it consistent with the API reference. --- docs/docs/tutorials/llm_chain.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/tutorials/llm_chain.ipynb b/docs/docs/tutorials/llm_chain.ipynb index c6c6a54d2f9..f8a6e39e743 100644 --- a/docs/docs/tutorials/llm_chain.ipynb +++ b/docs/docs/tutorials/llm_chain.ipynb @@ -159,7 +159,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "1b2481f0", "metadata": {}, "outputs": [ @@ -178,8 +178,8 @@ "from langchain_core.messages import HumanMessage, SystemMessage\n", "\n", "messages = [\n", - " SystemMessage(\"Translate the following from English into Italian\"),\n", - " HumanMessage(\"hi!\"),\n", + " SystemMessage(content=\"Translate the following from English into Italian\"),\n", + " HumanMessage(content=\"hi!\"),\n", "]\n", "\n", "model.invoke(messages)"