mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
ChatPromptTemplate: clean up doc-string (#8473)
Minor doc-string clean up --------- Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
parent
529cb2e30c
commit
e98e2b2b81
@ -469,7 +469,7 @@ class ChatPromptTemplate(BaseChatPromptTemplate, ABC):
|
||||
|
||||
Examples:
|
||||
|
||||
Instantiation from a list of role strings and templates:
|
||||
Instantiation from a list of message templates:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@ -488,18 +488,6 @@ class ChatPromptTemplate(BaseChatPromptTemplate, ABC):
|
||||
("human", "Hello, how are you?"),
|
||||
])
|
||||
|
||||
Instantiation from a list message templates:
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
template = ChatPromptTemplate.from_messages([
|
||||
("human", "Hello, how are you?"),
|
||||
("ai", "I'm doing well, thanks!"),
|
||||
("human", "That's good to hear."),
|
||||
])
|
||||
|
||||
|
||||
Args:
|
||||
messages: sequence of message representations.
|
||||
A message can be represented using the following formats:
|
||||
|
Loading…
Reference in New Issue
Block a user