mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-18 08:03:36 +00:00
Harrison/callbacks (#1587)
This commit is contained in:
@@ -70,12 +70,10 @@ def test_chat_prompt_template() -> None:
|
||||
|
||||
string = prompt.to_string()
|
||||
expected = (
|
||||
'[SystemMessage(content="Here\'s some context: context", '
|
||||
'additional_kwargs={}), HumanMessage(content="Hello foo, '
|
||||
"I'm bar. Thanks for the context\", additional_kwargs={}), "
|
||||
"AIMessage(content=\"I'm an AI. I'm foo. I'm bar.\", additional_kwargs={}), "
|
||||
"ChatMessage(content=\"I'm a generic message. I'm foo. I'm bar.\","
|
||||
" additional_kwargs={}, role='test')]"
|
||||
"System: Here's some context: context\n"
|
||||
"Human: Hello foo, I'm bar. Thanks for the context\n"
|
||||
"AI: I'm an AI. I'm foo. I'm bar.\n"
|
||||
"test: I'm a generic message. I'm foo. I'm bar."
|
||||
)
|
||||
assert string == expected
|
||||
|
||||
|
Reference in New Issue
Block a user