public interface ConversationAPI
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<BaseResponse<ClearConversationResp>> |
clear(String conversationID,
BaseReq baseReq) |
retrofit2.Call<BaseResponse<Conversation>> |
create(CreateConversationReq req,
BaseReq baseReq) |
retrofit2.Call<BaseResponse<ListConversationResp>> |
list(String botID,
Integer pageNum,
Integer pageSize,
BaseReq baseReq) |
retrofit2.Call<BaseResponse<Conversation>> |
retrieve(String id,
BaseReq baseReq) |
@Headers(value="Content-Type: application/json") @POST(value="/v1/conversation/create") retrofit2.Call<BaseResponse<Conversation>> create(@Body CreateConversationReq req, @Tag BaseReq baseReq)
@Headers(value="Content-Type: application/json") @GET(value="/v1/conversation/retrieve") retrofit2.Call<BaseResponse<Conversation>> retrieve(@Query(value="conversation_id") String id, @Tag BaseReq baseReq)
@Headers(value="Content-Type: application/json") @GET(value="/v1/conversations") retrofit2.Call<BaseResponse<ListConversationResp>> list(@Query(value="bot_id") String botID, @Query(value="page_num") Integer pageNum, @Query(value="page_size") Integer pageSize, @Tag BaseReq baseReq)
@Headers(value="Content-Type: application/json")
@POST(value="/v1/conversations/{conversation_id}/clear")
retrofit2.Call<BaseResponse<ClearConversationResp>> clear(@Path(value="conversation_id")
String conversationID,
@Tag
BaseReq baseReq)
Copyright © 2025. All rights reserved.