接口 DifyConversationApiService

所有已知子接口:
DifyChatApiService, DifyChatFlowApiService

public interface DifyConversationApiService
会话管理接口
  • 方法详细资料

    • getConversations

      @GET("conversations") retrofit2.Call<ConversationListResponse> getConversations(@Query("user") String user, @Query("last_id") String lastId, @Query("limit") Integer limit, @Query("sort_by") String sortBy)
      获取会话列表
    • getMessages

      @GET("messages") retrofit2.Call<ChatMessageListResponse> getMessages(@Query("conversation_id") String conversationId, @Query("user") String user, @Query("first_id") String firstId, @Query("limit") Integer limit)
    • deleteConversation

      @HTTP(method="DELETE", path="conversations/{conversation_id}", hasBody=true) retrofit2.Call<LittleResponse> deleteConversation(@Path("conversation_id") String conversationId, @Body SimpleUserRequest user)
      删除会话
      参数:
      conversationId -
      user -
      返回:
    • renameConversation

      @POST("conversations/{conversation_id}/name") retrofit2.Call<Conversation> renameConversation(@Path("conversation_id") String conversationId, @Body RenameConversationRequest request)
      会话重命名
      参数:
      conversationId -
      request -
      返回:
    • getConversationVariables

      @GET("conversations/{conversation_id}/variables") retrofit2.Call<ConversationVariablesResponse> getConversationVariables(@Path("conversation_id") String conversationId, @Query("user") String user, @Query("last_id") String lastId, @Query("limit") Integer limit, @Query("variable_name") String variableName)
      获取对话变量
      参数:
      conversationId - 会话 ID。
      user - 用户标识,由开发者定义规则,需保证用户标识在应用内唯一
      lastId - 选填)当前页最后面一条记录的 ID,默认 null。
      limit - 一次请求返回多少条记录,默认 20 条,最大 100 条,最小 1 条。
      variableName - 选填)按变量名称筛选
      返回: