From cfed68e06fabf4c155d29bd4bfeb4049e3719624 Mon Sep 17 00:00:00 2001 From: andyjessen <62343929+andyjessen@users.noreply.github.com> Date: Thu, 6 Jun 2024 08:25:27 -0600 Subject: [PATCH] docs: Fix description (#22611) This commit fixes the description of the hair_color field. --- docs/docs/how_to/extraction_examples.ipynb | 2 +- libs/core/langchain_core/utils/function_calling.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"