Skip to content

The agent engineering platform.

Docs: Add 'Optional' to installation section to fix an issue (#28902)

Ahmad Elmalahb258ff193076
diff --git a/docs/docs/how_to/structured_output.ipynb b/docs/docs/how_to/structured_output.ipynb
index c00755650c..66d961491d 100644
--- a/docs/docs/how_to/structured_output.ipynb
+++ b/docs/docs/how_to/structured_output.ipynb
@@ -165,6 +165,8 @@
}
],
"source": [
+ "from typing import Optional\n",
+ "\n",
"from typing_extensions import Annotated, TypedDict\n",
"\n",
"\n",
@@ -206,10 +208,10 @@
{
"data": {
"text/plain": [
- "{'setup': 'Why was the cat sitting on the computer?',\n",
- " 'punchline': 'Because it wanted to keep an eye on the mouse!',\n",
- " 'rating': 7}"
- ]
+ "{'setup': 'Why was the cat sitting on the computer?',\n",
+ " 'punchline': 'Because it wanted to keep an eye on the mouse!',\n",
+ " 'rating': 7}"
+ ]
},
"execution_count": 4,
"metadata": {},