Run constructor

const Run({
  1. required String id,
  2. required String object,
  3. required int createdAt,
  4. required String threadId,
  5. required String assistantId,
  6. required RunStatus status,
  7. RequiredAction? requiredAction,
  8. RunError? lastError,
  9. int? expiresAt,
  10. int? startedAt,
  11. int? cancelledAt,
  12. int? failedAt,
  13. int? completedAt,
  14. RunIncompleteDetails? incompleteDetails,
  15. required String model,
  16. String? instructions,
  17. required List<AssistantTool> tools,
  18. required Map<String, String> metadata,
  19. Usage? usage,
  20. double? temperature,
  21. double? topP,
  22. int? maxPromptTokens,
  23. int? maxCompletionTokens,
  24. TruncationStrategy? truncationStrategy,
  25. ToolChoice? toolChoice,
  26. bool? parallelToolCalls,
  27. ResponseFormat? responseFormat,
})

Creates a Run.

Implementation

const Run({
  required this.id,
  required this.object,
  required this.createdAt,
  required this.threadId,
  required this.assistantId,
  required this.status,
  this.requiredAction,
  this.lastError,
  this.expiresAt,
  this.startedAt,
  this.cancelledAt,
  this.failedAt,
  this.completedAt,
  this.incompleteDetails,
  required this.model,
  this.instructions,
  required this.tools,
  required this.metadata,
  this.usage,
  this.temperature,
  this.topP,
  this.maxPromptTokens,
  this.maxCompletionTokens,
  this.truncationStrategy,
  this.toolChoice,
  this.parallelToolCalls,
  this.responseFormat,
});