Class RunServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.beta.threads.RunServiceAsync
public final class RunServiceAsyncImpl implements RunServiceAsync
-
-
Method Summary
Modifier and Type Method Description StepServiceAsync
steps()
CompletableFuture<Run>
create(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run. AsyncStreamResponse<AssistantStreamEvent>
createStreaming(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run. CompletableFuture<Run>
retrieve(BetaThreadRunRetrieveParams params, RequestOptions requestOptions)
Retrieves a run. CompletableFuture<Run>
update(BetaThreadRunUpdateParams params, RequestOptions requestOptions)
Modifies a run. CompletableFuture<BetaThreadRunListPageAsync>
list(BetaThreadRunListParams params, RequestOptions requestOptions)
Returns a list of runs belonging to a thread. CompletableFuture<Run>
cancel(BetaThreadRunCancelParams params, RequestOptions requestOptions)
Cancels a run that is in_progress
.CompletableFuture<Run>
submitToolOutputs(BetaThreadRunSubmitToolOutputsParams params, RequestOptions requestOptions)
When a run has the status: "requires_action"
andrequired_action.type
issubmit_tool_outputs
, this endpoint can be used to submit the outputs from the tool calls once they're all completed.AsyncStreamResponse<AssistantStreamEvent>
submitToolOutputsStreaming(BetaThreadRunSubmitToolOutputsParams params, RequestOptions requestOptions)
When a run has the status: "requires_action"
andrequired_action.type
issubmit_tool_outputs
, this endpoint can be used to submit the outputs from the tool calls once they're all completed.-
-
Method Detail
-
steps
StepServiceAsync steps()
-
create
CompletableFuture<Run> create(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run.
-
createStreaming
AsyncStreamResponse<AssistantStreamEvent> createStreaming(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run.
-
retrieve
CompletableFuture<Run> retrieve(BetaThreadRunRetrieveParams params, RequestOptions requestOptions)
Retrieves a run.
-
update
CompletableFuture<Run> update(BetaThreadRunUpdateParams params, RequestOptions requestOptions)
Modifies a run.
-
list
CompletableFuture<BetaThreadRunListPageAsync> list(BetaThreadRunListParams params, RequestOptions requestOptions)
Returns a list of runs belonging to a thread.
-
cancel
CompletableFuture<Run> cancel(BetaThreadRunCancelParams params, RequestOptions requestOptions)
Cancels a run that is
in_progress
.
-
submitToolOutputs
CompletableFuture<Run> submitToolOutputs(BetaThreadRunSubmitToolOutputsParams params, RequestOptions requestOptions)
When a run has the
status: "requires_action"
andrequired_action.type
issubmit_tool_outputs
, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
-
submitToolOutputsStreaming
AsyncStreamResponse<AssistantStreamEvent> submitToolOutputsStreaming(BetaThreadRunSubmitToolOutputsParams params, RequestOptions requestOptions)
When a run has the
status: "requires_action"
andrequired_action.type
issubmit_tool_outputs
, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
-
-
-
-