Package ai.extend.wrapper.resources
Class WorkflowRunsClient
- java.lang.Object
-
- ai.extend.resources.workflowruns.WorkflowRunsClient
-
- ai.extend.wrapper.resources.WorkflowRunsClient
-
public class WorkflowRunsClient extends WorkflowRunsClient
Extended WorkflowRuns client with polling functionality.Extends the generated
WorkflowRunsClient, so all standard methods (list, create, retrieve, update, delete, cancel, createBatch) are inherited. AddscreateAndPollfor convenience.
-
-
Field Summary
-
Fields inherited from class ai.extend.resources.workflowruns.WorkflowRunsClient
clientOptions
-
-
Constructor Summary
Constructors Constructor Description WorkflowRunsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRuncreateAndPoll(WorkflowRunsCreateRequest request)Creates a workflow run and polls until it reaches a terminal state.WorkflowRuncreateAndPoll(WorkflowRunsCreateRequest request, PollingOptions options)Creates a workflow run and polls until it reaches a terminal state.
-
-
-
Constructor Detail
-
WorkflowRunsClient
public WorkflowRunsClient(ClientOptions clientOptions)
-
-
Method Detail
-
createAndPoll
public WorkflowRun createAndPoll(WorkflowRunsCreateRequest request)
Creates a workflow run and polls until it reaches a terminal state.Terminal states: PROCESSED, FAILED, CANCELLED, NEEDS_REVIEW, REJECTED
-
createAndPoll
public WorkflowRun createAndPoll(WorkflowRunsCreateRequest request, PollingOptions options)
Creates a workflow run and polls until it reaches a terminal state.Terminal states: PROCESSED, FAILED, CANCELLED, NEEDS_REVIEW, REJECTED
-
-