mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
Add type() in error msg (#24723)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user