Run constructor
const
Run({
- required String id,
- required String object,
- required int createdAt,
- required String threadId,
- required String assistantId,
- required RunStatus status,
- RequiredAction? requiredAction,
- RunError? lastError,
- int? expiresAt,
- int? startedAt,
- int? cancelledAt,
- int? failedAt,
- int? completedAt,
- RunIncompleteDetails? incompleteDetails,
- required String model,
- String? instructions,
- required List<
AssistantTool> tools, - required Map<
String, String> metadata, - Usage? usage,
- double? temperature,
- double? topP,
- int? maxPromptTokens,
- int? maxCompletionTokens,
- TruncationStrategy? truncationStrategy,
- ToolChoice? toolChoice,
- bool? parallelToolCalls,
- 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,
});