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
This commit is contained in:
ran8080 2025-08-11 16:20:09 +03:00 committed by GitHub
parent d40fa534c1
commit 130b7e6170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -614,6 +614,7 @@
" HumanMessage(\"Now about caterpillars\", name=\"example_user\"),\n", " HumanMessage(\"Now about caterpillars\", name=\"example_user\"),\n",
" AIMessage(\n", " AIMessage(\n",
" \"\",\n", " \"\",\n",
" name=\"example_assistant\",\n",
" tool_calls=[\n", " tool_calls=[\n",
" {\n", " {\n",
" \"name\": \"joke\",\n", " \"name\": \"joke\",\n",