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, webClient

    Fields inherited from interface io.github.guoshiqiufeng.dify.core.client.BaseDifyClient

    DEFAULT_BASE_URL, REQUEST_BODY_NULL_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    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 Type
    Method
    Description
    io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowInfoResponse
    info(String workflowRunId, String apiKey)
     
    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)
     
    io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowRunResponse
    runWorkflow(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.WorkflowStopResponse
    stopWorkflowStream(String apiKey, String taskId, String userId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DifyWorkflowDefaultClient

      public DifyWorkflowDefaultClient()
    • DifyWorkflowDefaultClient

      public DifyWorkflowDefaultClient(String baseUrl)
    • 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:
      runWorkflow in interface io.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:
      runWorkflowStream in interface io.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient
    • info

      public io.github.guoshiqiufeng.dify.workflow.dto.response.WorkflowInfoResponse info(String workflowRunId, String apiKey)
      Specified by:
      info in interface io.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:
      stopWorkflowStream in interface io.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:
      logs in interface io.github.guoshiqiufeng.dify.workflow.client.DifyWorkflowClient