AiThreadMessage constructor
const
AiThreadMessage({
- required String id,
- required String threadId,
- required String role,
- List<
AiThreadPart> content = const [], - String? model,
- String? provider,
- int? tokensIn,
- int? tokensOut,
- double? costUsd,
- String status = 'complete',
- String? error,
- Map<
String, dynamic> metadata = const {}, - DateTime? createdAt,
- 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 {},
});