mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 15:16:21 +00:00
xt
This commit is contained in:
parent
f82b8534f7
commit
b90b094645
@ -561,9 +561,12 @@ def test_image_generation_multi_turn() -> None:
|
|||||||
assert set(tool_output.keys()).issubset(expected_keys)
|
assert set(tool_output.keys()).issubset(expected_keys)
|
||||||
|
|
||||||
chat_history.extend(
|
chat_history.extend(
|
||||||
ai_message, # AI message with tool output
|
[
|
||||||
# New request
|
# AI message with tool output
|
||||||
{"role": "user", "content": "Now make it realistic."},
|
ai_message,
|
||||||
|
# New request
|
||||||
|
{"role": "user", "content": "Now make it realistic."},
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
ai_message2 = llm_with_tools.invoke(chat_history)
|
ai_message2 = llm_with_tools.invoke(chat_history)
|
||||||
|
Loading…
Reference in New Issue
Block a user