-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): Allow checking tool_calls on any BaseMessage without type casts #7479
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
So this will mess up a few automatic type inference situations like this: // messages is inferred as SystemMessage[]
const messages = [new SystemMessage("foo")];
messages.push(new AIMessage("bar"));
I still think it's worth it since you can do |
Yeah think I need to find a way to make this non-breaking... |
We should no longer need to do casts like this:
Instead: