copyWith method

AssistantMessage copyWith({
  1. String? uuid,
  2. String? timestamp,
  3. String? messageId,
  4. String? model,
  5. List<ContentBlock>? content,
  6. Usage? usage,
  7. String? requestId,
  8. bool? isApiErrorMessage,
  9. bool? isVirtual,
})

Implementation

AssistantMessage copyWith({
  String? uuid,
  String? timestamp,
  String? messageId,
  String? model,
  List<ContentBlock>? content,
  Usage? usage,
  String? requestId,
  bool? isApiErrorMessage,
  bool? isVirtual,
}) => AssistantMessage(
  uuid: uuid ?? this.uuid,
  timestamp: timestamp ?? this.timestamp,
  messageId: messageId ?? this.messageId,
  model: model ?? this.model,
  content: content ?? this.content,
  usage: usage ?? this.usage,
  requestId: requestId ?? this.requestId,
  isApiErrorMessage: isApiErrorMessage ?? this.isApiErrorMessage,
  isVirtual: isVirtual ?? this.isVirtual,
  apiError: apiError,
  error: error,
  errorDetails: errorDetails,
  advisorModel: advisorModel,
);