latestSwagger 2.0Apache 2.02026-08-19151166415.3 KB

5c90e58bf672

role_play

GetReply get ai's reply for user's input

GetReply get ai's reply for user's input

get/v2/role_play/get_reply

Query parameters

codestring required

course code

ai_rolestring required

ai role name

user_rolestring required

user role name

thread_idstring

it doesn't need to take thread_id query parameter when this api is called firstly, i will respond thread_id after calling firstly, so subsequence calling need to take the responded value.

textstring required

user input

Headers

Authorizationstring required

With the bearer started, optional for guest

Response

success, the data is *model.AIReplyRsp

codeinteger

0=success,only parse data when code=0

messagestring

tip message

Example response

{
  "message": "success"
}