ai icon indicating copy to clipboard operation
ai copied to clipboard

feat (rsc): multiple tool calls for streamUI

Open gclark-eightfold opened this issue 8 months ago • 7 comments

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

gclark-eightfold avatar Jun 10 '24 20:06 gclark-eightfold