Add type() in error msg (#24723)

This commit is contained in:
William FH 2024-07-26 16:48:45 -07:00 committed by GitHub
parent 9be6b5a20f
commit 0535d72927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,7 +230,7 @@ class MessagesPlaceholder(BaseMessagePromptTemplate):
if not isinstance(value, list):
raise ValueError(
f"variable {self.variable_name} should be a list of base messages, "
f"got {value}"
f"got {value} of type {type(value)}"
)
value = convert_to_messages(value)
if self.n_messages: