Skip to content

feat: AI SDK ChatTransport #2634

@jakevollkommer

Description

@jakevollkommer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions