Class DifyWorkflowDefaultClient
java.lang.Object
io.github.guoshiqiufeng.dify.client.spring6.base.BaseDifyDefaultClient
io.github.guoshiqiufeng.dify.client.spring6.workflow.DifyWorkflowDefaultClient
- All Implemented Interfaces:
io.github.guoshiqiufeng.dify.core.client.BaseDifyClient,io.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
public class DifyWorkflowDefaultClient
extends BaseDifyDefaultClient
implements io.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
- Since:
- 2025/4/8 16:26
- Version:
- 0.8.0
- Author:
- yanghq
-
Field Summary
Fields inherited from class io.github.guoshiqiufeng.dify.client.spring6.base.BaseDifyDefaultClient
responseErrorHandler, restClient, webClientFields inherited from interface io.github.guoshiqiufeng.dify.core.client.BaseDifyClient
DEFAULT_BASE_URL, REQUEST_BODY_NULL_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionDifyWorkflowDefaultClient(String baseUrl) DifyWorkflowDefaultClient(String baseUrl, io.github.guoshiqiufeng.dify.core.config.DifyProperties.ClientConfig clientConfig, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionio.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowInfoResponseio.github.guoshiqiufeng.dify.core.pojo.DifyPageResult<io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowLogs> logs(io.github.guoshiqiufeng.dify.workflow.dto.request.WorkflowLogsRequest request) io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowRunResponserunWorkflow(io.github.guoshiqiufeng.dify.workflow.dto.request.WorkflowRunRequest request) reactor.core.publisher.Flux<io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowRunStreamResponse> runWorkflowStream(io.github.guoshiqiufeng.dify.workflow.dto.request.WorkflowRunRequest request) io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowStopResponsestopWorkflowStream(String apiKey, String taskId, String userId)
-
Constructor Details
-
DifyWorkflowDefaultClient
public DifyWorkflowDefaultClient() -
DifyWorkflowDefaultClient
-
DifyWorkflowDefaultClient
public DifyWorkflowDefaultClient(String baseUrl, io.github.guoshiqiufeng.dify.core.config.DifyProperties.ClientConfig clientConfig, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
-
Method Details
-
runWorkflow
public io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowRunResponse runWorkflow(io.github.guoshiqiufeng.dify.workflow.dto.request.WorkflowRunRequest request) - Specified by:
runWorkflowin interfaceio.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
-
runWorkflowStream
public reactor.core.publisher.Flux<io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowRunStreamResponse> runWorkflowStream(io.github.guoshiqiufeng.dify.workflow.dto.request.WorkflowRunRequest request) - Specified by:
runWorkflowStreamin interfaceio.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
-
info
public io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowInfoResponse info(String workflowRunId, String apiKey) - Specified by:
infoin interfaceio.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
-
stopWorkflowStream
public io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowStopResponse stopWorkflowStream(String apiKey, String taskId, String userId) - Specified by:
stopWorkflowStreamin interfaceio.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
-
logs
public io.github.guoshiqiufeng.dify.core.pojo.DifyPageResult<io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowLogs> logs(io.github.guoshiqiufeng.dify.workflow.dto.request.WorkflowLogsRequest request) - Specified by:
logsin interfaceio.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
-