public interface IDifyWorkFlowClient extends IDifyClient
| 限定符和类型 | 方法和说明 |
|---|---|
com.alibaba.fastjson.JSONObject |
getWorkFlowLog(String keyword,
WorkflowStatus status,
Integer page,
Integer limit)
获取工作流日志
|
com.alibaba.fastjson.JSONObject |
getWorkFlowStatus(String workFlowId)
获取工作流执行情况
|
com.alibaba.fastjson.JSONObject |
runBlocking(ParamMessage message)
执行工作流(阻塞模式)
|
CompletableFuture<Void> |
runStreaming(ParamMessage message,
Consumer<DifyWorkFlowResult> consumer)
执行工作流(流式模式)
|
Boolean |
stopWorkFlow(String taskId,
String user)
停止工作流(仅限流式模式)
|
getAppInfo, getAppMetaInfo, getAppParameters, requestJson, requestJson, requestJson, requestJson, requestJson, requestJson, requestJson, requestJson, requestMultipart, requestMultipart, requestMultipart, sendBlocking, sendBlocking, sendStreaming, sendStreaming, sendStreaming, uploadFileCompletableFuture<Void> runStreaming(ParamMessage message, Consumer<DifyWorkFlowResult> consumer)
message - ParamMessageconsumer - Consumercom.alibaba.fastjson.JSONObject runBlocking(ParamMessage message)
message - ParamMessagecom.alibaba.fastjson.JSONObject getWorkFlowStatus(String workFlowId)
workFlowId - 工作流IDBoolean stopWorkFlow(String taskId, String user)
taskId - 任务ID(流式返回chunk中获取)user - 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致com.alibaba.fastjson.JSONObject getWorkFlowLog(String keyword, WorkflowStatus status, Integer page, Integer limit)
keyword - 关键字status - 执行状态(succeeded/failed/stopped)page - 页码limit - 每页数量Copyright © 2025. All rights reserved.