mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
Add type() in error msg (#24723)
This commit is contained in:
parent
9be6b5a20f
commit
0535d72927
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user