public class DifyChatFlowApi extends Object
| 构造器和说明 |
|---|
DifyChatFlowApi(String baseUrl,
String apiKey) |
public ChatMessageResponse sendChatMessage(ChatMessageRequest message)
public void sendChatMessageStream(ChatMessageRequest message, ChatflowStreamCallback callback)
public StopChatMessageResponse stopChatMessage(String taskId, StopChatMessageRequest request)
public SuggestedQuestionsResponse getSuggestedQuestions(String messageId, String user)
public ConversationListResponse getConversations(String user, String lastId, Integer limit, String sortBy)
public ChatMessageListResponse getMessages(String conversationId, String user, String firstId, Integer limit)
public LittleResponse deleteConversation(String conversationId, SimpleUserRequest user)
public ConversationVariablesResponse getConversationVariables(String conversationId, String user, String lastId, Integer limit, String variableName)
public LittleResponse feedbackMessage(String messageId, FeedBackRequest request)
public FeedBackListResponse getFeedBackList(Integer page, Integer limit)
public byte[] textToAudio(TextToAudioRequest request) throws IOException
IOExceptionpublic AudioToTextResponse audioToText(File file, String user) throws IOException
IOExceptionpublic Annotation createAnnotation(AnnotationRequest request)
public AnnotationListResponse getAnnotationList(Integer page, Integer limit)
public void deleteAnnotation(String id)
public Annotation updateAnnotation(String id, AnnotationRequest request)
public AnnotationReplyResponse annotationReply(AnnotationReplyAction action, AnnotationReplyRequest request)
public AnnotationReplyResponse getAnnotationReplyStatus(AnnotationReplyAction action, String jobId)
Copyright © 2025. All rights reserved.