Interface RunServiceAsync
-
- All Implemented Interfaces:
public interface RunServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
RunServiceAsync.WithRawResponse
A view of RunServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract RunServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
steps
abstract StepServiceAsync steps()
-
create
CompletableFuture<Run> create(String threadId, RunCreateParams params)
Create a run.
-
create
CompletableFuture<Run> create(String threadId, RunCreateParams params, RequestOptions requestOptions)
-
create
CompletableFuture<Run> create(RunCreateParams params)
-
create
abstract CompletableFuture<Run> create(RunCreateParams params, RequestOptions requestOptions)
-
createStreaming
AsyncStreamResponse<AssistantStreamEvent> createStreaming(String threadId, RunCreateParams params)
Create a run.
-
createStreaming
AsyncStreamResponse<AssistantStreamEvent> createStreaming(String threadId, RunCreateParams params, RequestOptions requestOptions)
-
createStreaming
AsyncStreamResponse<AssistantStreamEvent> createStreaming(RunCreateParams params)
-
createStreaming
abstract AsyncStreamResponse<AssistantStreamEvent> createStreaming(RunCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Run> retrieve(String runId, RunRetrieveParams params)
Retrieves a run.
-
retrieve
CompletableFuture<Run> retrieve(String runId, RunRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Run> retrieve(RunRetrieveParams params)
-
retrieve
abstract CompletableFuture<Run> retrieve(RunRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Run> update(String runId, RunUpdateParams params)
Modifies a run.
-
update
CompletableFuture<Run> update(String runId, RunUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Run> update(RunUpdateParams params)
-
update
abstract CompletableFuture<Run> update(RunUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RunListPageAsync> list(String threadId)
Returns a list of runs belonging to a thread.
-
list
CompletableFuture<RunListPageAsync> list(String threadId, RunListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RunListPageAsync> list(String threadId, RunListParams params)
-
list
abstract CompletableFuture<RunListPageAsync> list(RunListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RunListPageAsync> list(RunListParams params)
-
list
CompletableFuture<RunListPageAsync> list(String threadId, RequestOptions requestOptions)
-
cancel
CompletableFuture<Run> cancel(String runId, RunCancelParams params)
Cancels a run that is
in_progress
.
-
cancel
CompletableFuture<Run> cancel(String runId, RunCancelParams params, RequestOptions requestOptions)
-
cancel
CompletableFuture<Run> cancel(RunCancelParams params)
-
cancel
abstract CompletableFuture<Run> cancel(RunCancelParams params, RequestOptions requestOptions)
-
submitToolOutputs
CompletableFuture<Run> submitToolOutputs(String runId, RunSubmitToolOutputsParams params)
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.
-
submitToolOutputs
CompletableFuture<Run> submitToolOutputs(String runId, RunSubmitToolOutputsParams params, RequestOptions requestOptions)
-
submitToolOutputs
CompletableFuture<Run> submitToolOutputs(RunSubmitToolOutputsParams params)
-
submitToolOutputs
abstract CompletableFuture<Run> submitToolOutputs(RunSubmitToolOutputsParams params, RequestOptions requestOptions)
-
submitToolOutputsStreaming
AsyncStreamResponse<AssistantStreamEvent> submitToolOutputsStreaming(String runId, RunSubmitToolOutputsParams params)
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(String runId, RunSubmitToolOutputsParams params, RequestOptions requestOptions)
-
submitToolOutputsStreaming
AsyncStreamResponse<AssistantStreamEvent> submitToolOutputsStreaming(RunSubmitToolOutputsParams params)
-
submitToolOutputsStreaming
abstract AsyncStreamResponse<AssistantStreamEvent> submitToolOutputsStreaming(RunSubmitToolOutputsParams params, RequestOptions requestOptions)
-
-
-
-