RunsService class
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