From 130b7e6170e4770ddbf0a3d3b9189d76d60e4329 Mon Sep 17 00:00:00 2001 From: ran8080 <49406403+ran8080@users.noreply.github.com> Date: Mon, 11 Aug 2025 16:20:09 +0300 Subject: [PATCH] docs(docs): add missing name to AIMessage in example (#32482) **Description:** In the `docs/docs/how_to/structured_output.ipynb` notebook, an `AIMessage` within the tool-calling few-shot example was missing the `name="example_assistant"` parameter. This was inconsistent with the other `AIMessage` instances in the same list. This change adds the missing `name` parameter to ensure all examples in the section are consistent, improving the clarity and correctness of the documentation. **Issue:** N/A **Dependencies:** N/A --- docs/docs/how_to/structured_output.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/how_to/structured_output.ipynb b/docs/docs/how_to/structured_output.ipynb index d306813a9f0..ae647d70781 100644 --- a/docs/docs/how_to/structured_output.ipynb +++ b/docs/docs/how_to/structured_output.ipynb @@ -614,6 +614,7 @@ " HumanMessage(\"Now about caterpillars\", name=\"example_user\"),\n", " AIMessage(\n", " \"\",\n", + " name=\"example_assistant\",\n", " tool_calls=[\n", " {\n", " \"name\": \"joke\",\n",