AiThreadMessage constructor

const AiThreadMessage({
  1. required String id,
  2. required String threadId,
  3. required String role,
  4. List<AiThreadPart> content = const [],
  5. String? model,
  6. String? provider,
  7. int? tokensIn,
  8. int? tokensOut,
  9. double? costUsd,
  10. String status = 'complete',
  11. String? error,
  12. Map<String, dynamic> metadata = const {},
  13. DateTime? createdAt,
  14. Map<String, dynamic> raw = const {},
})

Implementation

const AiThreadMessage({
  required this.id,
  required this.threadId,
  required this.role,
  this.content = const [],
  this.model,
  this.provider,
  this.tokensIn,
  this.tokensOut,
  this.costUsd,
  this.status = 'complete',
  this.error,
  this.metadata = const {},
  this.createdAt,
  this.raw = const {},
});