trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

feat: AI SDK ChatTransport

Open jakevollkommer opened this issue 2 months ago • 1 comments

Is your feature request related to a problem? Please describe.

AI SDK v5 exposes a custom transport for use with the useChat hook

I’m wondering if it would be possible to use trigger.dev in the transport layer

The default transport of course uses HTTP and there is an example of using WebSockets floating around

Describe the solution you'd like to see

it seems like it would be possible to trigger the task and then subscribe to the metadata stream and leverage the realtime hooks

Describe alternate solutions

Not sure how else we could use the useChat hook with trigger

Additional information

No response

jakevollkommer avatar Oct 27 '25 12:10 jakevollkommer

This sounds great! 🔥 Best of luck here, we'll definitely help promote if you get it working

nicktrn avatar Oct 27 '25 13:10 nicktrn