forked from langchain-ai/langchainjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: validate input or throw when using MessagesPlaceholder (langchai…
…n-ai#2874) * fix: validate types or throw when using MessagesPlaceholder class * chore: lint files * fix: better error message and account for null/undefined values * chore: lint files * fix: upate isBaseMessage method explicitly * chore: lint files * fix: error messahe * chore: lint files * fix: tests, give error name * chore: lint files * fix: cleaner check * Disallow nullish values * Fix test --------- Co-authored-by: jacoblee93 <[email protected]>
- Loading branch information
1 parent
afc01bb
commit 2039f07
Showing
3 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters