Generate Assistant Message
Generates a response message from the assistant for the specified domain. For best results, use the useChat hook from ai-sdk to send requests and handle responses. You can set fp
, threadId
, and filter
in the body
field of the options parameter passed to the hook.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The domain identifier that can be found in the top left corner of the Mintlify dashboard
Body
Response
Message generated successfully
Response object that streams formatted data stream parts with the specified status, headers, and content. This matches what is expected from the AI SDK as documented at ai-sdk.dev/docs/ai-sdk-ui/streaming-data. Instead of writing your own parser, it is recommended to use the useChat hook from ai-sdk as documented here.