mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore: bump ruff version to 0.13 (#33043)
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
f82de1a8d7
commit
eaf8dce7c2
@@ -813,7 +813,10 @@ class ChatPromptTemplate(BaseChatPromptTemplate):
|
||||
)
|
||||
|
||||
prompt_value = template.invoke(
|
||||
{"name": "Bob", "user_input": "What is your name?"}
|
||||
{
|
||||
"name": "Bob",
|
||||
"user_input": "What is your name?",
|
||||
}
|
||||
)
|
||||
# Output:
|
||||
# ChatPromptValue(
|
||||
|
||||
@@ -281,7 +281,10 @@ class FewShotChatMessagePromptTemplate(
|
||||
]
|
||||
|
||||
example_prompt = ChatPromptTemplate.from_messages(
|
||||
[("human", "What is {input}?"), ("ai", "{output}")]
|
||||
[
|
||||
("human", "What is {input}?"),
|
||||
("ai", "{output}"),
|
||||
]
|
||||
)
|
||||
|
||||
few_shot_prompt = FewShotChatMessagePromptTemplate(
|
||||
|
||||
Reference in New Issue
Block a user