Skip to content
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

Add data streaming support for tools #4788

Open
BrianHung opened this issue Feb 9, 2025 · 0 comments
Open

Add data streaming support for tools #4788

BrianHung opened this issue Feb 9, 2025 · 0 comments
Labels
ai/core ai/ui enhancement New feature or request

Comments

@BrianHung
Copy link
Contributor

Feature Description

Add the ability for tools to stream data during their execution. This allows tools to send intermediate data or progress updates while they are running, rather than just returning a final result.

The feature adds:

  • Split DataStreamWriter into basic and full interfaces
  • Add dataStream parameter to tool execution and onToolCall

Use Cases

Progress updates during long-running tool operations.

Additional context

https://github.com/vercel/ai-chatbot/blob/main/app/(chat)/api/chat/route.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/core ai/ui enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants