From 111c7df117e0e8e1bd7bc4cd9d5d5e04d44ff822 Mon Sep 17 00:00:00 2001 From: orkhank <118054233+orkhank@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:21:52 +0000 Subject: [PATCH] docs: update numbering of items in method docs (#25093) Some methods' doc strings have a wrong numbering of items. The numbers were adjusted accordingly --- libs/core/langchain_core/prompts/chat.py | 2 +- libs/core/langchain_core/prompts/structured.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/langchain_core/prompts/chat.py b/libs/core/langchain_core/prompts/chat.py index bf8596c7598..2254eb2f01c 100644 --- a/libs/core/langchain_core/prompts/chat.py +++ b/libs/core/langchain_core/prompts/chat.py @@ -941,7 +941,7 @@ class ChatPromptTemplate(BaseChatPromptTemplate): A message can be represented using the following formats: (1) BaseMessagePromptTemplate, (2) BaseMessage, (3) 2-tuple of (message type, template); e.g., ("human", "{user_input}"), - (4) 2-tuple of (message class, template), (4) a string which is + (4) 2-tuple of (message class, template), (5) a string which is shorthand for ("human", template); e.g., "{user_input}". template_format: format of the template. Defaults to "f-string". input_variables: A list of the names of the variables whose values are diff --git a/libs/core/langchain_core/prompts/structured.py b/libs/core/langchain_core/prompts/structured.py index 9dbecc02857..5176b483d96 100644 --- a/libs/core/langchain_core/prompts/structured.py +++ b/libs/core/langchain_core/prompts/structured.py @@ -79,7 +79,7 @@ class StructuredPrompt(ChatPromptTemplate): A message can be represented using the following formats: (1) BaseMessagePromptTemplate, (2) BaseMessage, (3) 2-tuple of (message type, template); e.g., ("human", "{user_input}"), - (4) 2-tuple of (message class, template), (4) a string which is + (4) 2-tuple of (message class, template), (5) a string which is shorthand for ("human", template); e.g., "{user_input}" schema: a dictionary representation of function call, or a Pydantic model.