diff --git a/docs/docs/how_to/extraction_examples.ipynb b/docs/docs/how_to/extraction_examples.ipynb index 27d40ea77cf..d6cd55982c5 100644 --- a/docs/docs/how_to/extraction_examples.ipynb +++ b/docs/docs/how_to/extraction_examples.ipynb @@ -128,7 +128,7 @@ " # Having a good description can help improve extraction results.\n", " name: Optional[str] = Field(..., description=\"The name of the person\")\n", " hair_color: Optional[str] = Field(\n", - " ..., description=\"The color of the person's eyes if known\"\n", + " ..., description=\"The color of the person's hair if known\"\n", " )\n", " height_in_meters: Optional[str] = Field(..., description=\"Height in METERs\")\n", "\n", diff --git a/libs/core/langchain_core/utils/function_calling.py b/libs/core/langchain_core/utils/function_calling.py index 49197423e13..92e78fab7d0 100644 --- a/libs/core/langchain_core/utils/function_calling.py +++ b/libs/core/langchain_core/utils/function_calling.py @@ -386,7 +386,7 @@ def tool_example_to_messages( '''Information about a person.''' name: Optional[str] = Field(..., description="The name of the person") hair_color: Optional[str] = Field( - ..., description="The color of the person's eyes if known" + ..., description="The color of the person's hair if known" ) height_in_meters: Optional[str] = Field( ..., description="Height in METERs"