You can use non-streaming API sequence to generate an answer in a single API call and then use followup requests for additional information about the answer or to record message feedback.
-
POST =>
/chat/message
If the messageId is not required in advance by your own system, then this endpoint will handle most of the above in a single go. Pass the messageId if it was created, or the message and conversation details and receive back the generated answer, id's, references.
-
POST =>
/chat/message/followup-suggestions
Generate suggested followup questions.
-
POST =>
/chat/message/feedback
Record feedback given by the user for the generated answer.