RunsService class

Constructors

RunsService({required String baseUrl, required bool secure})

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secure bool
final

Methods

cancelRun({required String apiKey, required String organizationId, required String threadId, required String runId}) Future<GptRun>
Cancels a run that is in_progress.
createRun({required String apiKey, required String organizationId, required String threadId, required CreateGptRunRequest request}) Future<GptRun>
Create a run.
createThreadAndRun({required String apiKey, required String organizationId, required CreateAndRunThreadRequest request}) Future<GptRun>
Create a thread and run it in one request.
listRuns({required String apiKey, required String organizationId, required String threadId}) Future<List<GptRun>>
Lists runs
modifyRun({required String apiKey, required String organizationId, required String threadId, required String runId, required ModifyGptRunRequest request}) Future<GptRun>
Modify a run.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveRun({required String apiKey, required String organizationId, required String threadId, required String runId}) Future<GptRun>
Retrieves a run.
submitToolOutputsToRun({required String apiKey, required String organizationId, required String threadId, required String runId, required SubmitToolsOutputsRequest request}) Future<GptRun>
When a run has the status: "requires_action" and required_action.type is submit_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.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited