From a6535074ecf037b7b6b0a07d7a58e4a7d533de72 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 bf8596c7598f7..2254eb2f01c76 100644 --- a/libs/core/langchain_core/prompts/chat.py +++ b/libs/core/langchain_core/prompts/chat.py @@ -941,7 +941,7 @@ def __init__( 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 9dbecc02857cf..5176b483d96da 100644 --- a/libs/core/langchain_core/prompts/structured.py +++ b/libs/core/langchain_core/prompts/structured.py @@ -79,7 +79,7 @@ class OutputSchema(BaseModel): 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.