Class RunServiceImpl
-
- All Implemented Interfaces:
-
com.openai.services.blocking.beta.threads.RunService
public final class RunServiceImpl implements RunService
-
-
Method Summary
Modifier and Type Method Description StepService
steps()
Run
create(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run. StreamResponse<AssistantStreamEvent>
createStreaming(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run. Run
retrieve(BetaThreadRunRetrieveParams params, RequestOptions requestOptions)
Retrieves a run. Run
update(BetaThreadRunUpdateParams params, RequestOptions requestOptions)
Modifies a run. BetaThreadRunListPage
list(BetaThreadRunListParams params, RequestOptions requestOptions)
Returns a list of runs belonging to a thread. Run
cancel(BetaThreadRunCancelParams params, RequestOptions requestOptions)
Cancels a run that is in_progress
.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.StreamResponse<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
StepService steps()
-
create
Run create(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run.
-
createStreaming
StreamResponse<AssistantStreamEvent> createStreaming(BetaThreadRunCreateParams params, RequestOptions requestOptions)
Create a run.
-
retrieve
Run retrieve(BetaThreadRunRetrieveParams params, RequestOptions requestOptions)
Retrieves a run.
-
update
Run update(BetaThreadRunUpdateParams params, RequestOptions requestOptions)
Modifies a run.
-
list
BetaThreadRunListPage list(BetaThreadRunListParams params, RequestOptions requestOptions)
Returns a list of runs belonging to a thread.
-
cancel
Run cancel(BetaThreadRunCancelParams params, RequestOptions requestOptions)
Cancels a run that is
in_progress
.
-
submitToolOutputs
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
StreamResponse<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.
-
-
-
-