ai
ai copied to clipboard
feat (rsc): multiple tool calls for streamUI
Summary
Adds the ability to invoke multiple tool calls for streamUI
.
Addresses https://github.com/vercel/ai/issues/1894, https://github.com/vercel/ai/issues/1532#issuecomment-2122232969
NOTE: For usage with aiState
, it's important to call aiState.done(...)
only in the onFinish
callback (if expecting multiple tool calls). -- Not sure if this is a breaking change.
Tasks
- [x] rebase onto https://github.com/vercel/ai/pull/1920 once merged to pickup refactored
onFinish
callback changes - [x] implementation
- [ ] test
- [ ] example
- [ ] docs
- [ ] reference
- [ ] example
- [ ] changeset