mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-17 16:39:52 +00:00
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:
parent
d40fa534c1
commit
130b7e6170
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user