RAGStatistics constructor

RAGStatistics({
  1. Int64? indexedDocuments,
  2. Int64? indexedChunks,
  3. Int64? totalTokensIndexed,
  4. Int64? lastUpdatedMs,
  5. String? indexPath,
  6. String? statsJson,
  7. Int64? vectorStoreSizeBytes,
  8. bool? isPersistent,
  9. Int64? lastQueryMs,
  10. String? errorMessage,
  11. int? errorCode,
})

Implementation

factory RAGStatistics({
  $fixnum.Int64? indexedDocuments,
  $fixnum.Int64? indexedChunks,
  $fixnum.Int64? totalTokensIndexed,
  $fixnum.Int64? lastUpdatedMs,
  $core.String? indexPath,
  $core.String? statsJson,
  $fixnum.Int64? vectorStoreSizeBytes,
  $core.bool? isPersistent,
  $fixnum.Int64? lastQueryMs,
  $core.String? errorMessage,
  $core.int? errorCode,
}) {
  final result = create();
  if (indexedDocuments != null) result.indexedDocuments = indexedDocuments;
  if (indexedChunks != null) result.indexedChunks = indexedChunks;
  if (totalTokensIndexed != null)
    result.totalTokensIndexed = totalTokensIndexed;
  if (lastUpdatedMs != null) result.lastUpdatedMs = lastUpdatedMs;
  if (indexPath != null) result.indexPath = indexPath;
  if (statsJson != null) result.statsJson = statsJson;
  if (vectorStoreSizeBytes != null)
    result.vectorStoreSizeBytes = vectorStoreSizeBytes;
  if (isPersistent != null) result.isPersistent = isPersistent;
  if (lastQueryMs != null) result.lastQueryMs = lastQueryMs;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (errorCode != null) result.errorCode = errorCode;
  return result;
}