copyWith method
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,
);