From c902a1545bfbc3015defcd1c3ee435d38db4ee34 Mon Sep 17 00:00:00 2001 From: captivus <366332+captivus@users.noreply.github.com> Date: Fri, 8 Sep 2023 17:53:08 -0500 Subject: [PATCH] =?UTF-8?q?Resolves=20issue=20DOC:=20Incorrect=20and=20con?= =?UTF-8?q?fusing=20documentation=20of=20AIMessag=E2=80=A6=20(#10379)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves issue DOC: Incorrect and confusing documentation of AIMessagePromptTemplate and HumanMessagePromptTemplate #10378 - Description: Revised docstrings to correctly and clearly document each PromptTemplate - Issue: #10378 - Dependencies: N/A - Tag maintainer: @baskaryan --------- Co-authored-by: Bagatur --- libs/langchain/langchain/prompts/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/prompts/chat.py b/libs/langchain/langchain/prompts/chat.py index 59fcb30c86..5b177bc124 100644 --- a/libs/langchain/langchain/prompts/chat.py +++ b/libs/langchain/langchain/prompts/chat.py @@ -229,7 +229,7 @@ class ChatMessagePromptTemplate(BaseStringMessagePromptTemplate): class HumanMessagePromptTemplate(BaseStringMessagePromptTemplate): - """Human message prompt template. This is a message that is sent to the user.""" + """Human message prompt template. This is a message sent from the user.""" def format(self, **kwargs: Any) -> BaseMessage: """Format the prompt template. @@ -245,7 +245,7 @@ class HumanMessagePromptTemplate(BaseStringMessagePromptTemplate): class AIMessagePromptTemplate(BaseStringMessagePromptTemplate): - """AI message prompt template. This is a message that is not sent to the user.""" + """AI message prompt template. This is a message sent from the AI.""" def format(self, **kwargs: Any) -> BaseMessage: """Format the prompt template.