We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3fa1f commit 4cae555Copy full SHA for 4cae555
tests/test_basic.py
@@ -50,6 +50,13 @@ def test_basic_print():
50
def test_basic_chain():
51
p = P("you're a helpful assistant.")
52
p2 = P("you're a helpful assistant.")
53
+
54
+ pc = p / p2
55
+ assert pc.messages() == [
56
+ {"role": "user", "content": "you're a helpful assistant."},
57
+ {"role": "assistant", "content": "you're a helpful assistant."},
58
+ ]
59
60
pc = p / p2 / p
61
assert pc.roles == [None, None, None]
62
assert len(pc) == 3
0 commit comments