@@ -18,8 +18,8 @@ def test_init(self):
1818 ]
1919 )
2020 assert builder .required_variables == []
21- assert builder .template [0 ].content == "This is a {{ variable }}"
22- assert builder .template [1 ].content == "This is a {{ variable2 }}"
21+ assert builder .template [0 ].text == "This is a {{ variable }}"
22+ assert builder .template [1 ].text == "This is a {{ variable2 }}"
2323 assert builder ._variables is None
2424 assert builder ._required_variables is None
2525
@@ -62,7 +62,7 @@ def test_init_with_required_variables(self):
6262 template = [ChatMessage .from_user ("This is a {{ variable }}" )], required_variables = ["variable" ]
6363 )
6464 assert builder .required_variables == ["variable" ]
65- assert builder .template [0 ].content == "This is a {{ variable }}"
65+ assert builder .template [0 ].text == "This is a {{ variable }}"
6666 assert builder ._variables is None
6767 assert builder ._required_variables == ["variable" ]
6868
@@ -84,7 +84,7 @@ def test_init_with_custom_variables(self):
8484 builder = ChatPromptBuilder (template = template , variables = variables )
8585 assert builder .required_variables == []
8686 assert builder ._variables == variables
87- assert builder .template [0 ].content == "Hello, {{ var1 }}, {{ var2 }}!"
87+ assert builder .template [0 ].text == "Hello, {{ var1 }}, {{ var2 }}!"
8888 assert builder ._required_variables is None
8989
9090 # we have inputs that contain: template, template_variables + variables
0 commit comments