From 8b40428f58733065dd28a549452cee32712fd969 Mon Sep 17 00:00:00 2001 From: andyjessen <62343929+andyjessen@users.noreply.github.com> Date: Thu, 6 Jun 2024 05:38:36 -0600 Subject: [PATCH] docs: Fix typo (#22603) This commit changes minor typo in the field description. --- docs/docs/how_to/extraction_examples.ipynb | 2 +- docs/docs/tutorials/extraction.ipynb | 4 ++-- libs/core/langchain_core/utils/function_calling.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/how_to/extraction_examples.ipynb b/docs/docs/how_to/extraction_examples.ipynb index 56deda9c635..27d40ea77cf 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 peron's eyes if known\"\n", + " ..., description=\"The color of the person's eyes if known\"\n", " )\n", " height_in_meters: Optional[str] = Field(..., description=\"Height in METERs\")\n", "\n", diff --git a/docs/docs/tutorials/extraction.ipynb b/docs/docs/tutorials/extraction.ipynb index 263b9b86364..b9a3ccca3ac 100644 --- a/docs/docs/tutorials/extraction.ipynb +++ b/docs/docs/tutorials/extraction.ipynb @@ -128,7 +128,7 @@ " # Having a good description can help improve extraction results.\n", " name: Optional[str] = Field(default=None, description=\"The name of the person\")\n", " hair_color: Optional[str] = Field(\n", - " default=None, description=\"The color of the peron's hair if known\"\n", + " default=None, description=\"The color of the person's hair if known\"\n", " )\n", " height_in_meters: Optional[str] = Field(\n", " default=None, description=\"Height measured in meters\"\n", @@ -303,7 +303,7 @@ " # Having a good description can help improve extraction results.\n", " name: Optional[str] = Field(default=None, description=\"The name of the person\")\n", " hair_color: Optional[str] = Field(\n", - " default=None, description=\"The color of the peron's hair if known\"\n", + " default=None, description=\"The color of the person's hair if known\"\n", " )\n", " height_in_meters: Optional[str] = Field(\n", " default=None, description=\"Height measured in meters\"\n", diff --git a/libs/core/langchain_core/utils/function_calling.py b/libs/core/langchain_core/utils/function_calling.py index 932b329f870..49197423e13 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 peron's eyes if known" + ..., description="The color of the person's eyes if known" ) height_in_meters: Optional[str] = Field( ..., description="Height in METERs"