AutoAiRepository constructor

AutoAiRepository({
  1. InMemoryAiRunStore? runs,
  2. InMemoryAiThreadStore? threads,
  3. InMemoryAiTraceStore? traces,
  4. InMemoryAiArtifactStore? artifacts,
})

Implementation

factory AutoAiRepository({
  InMemoryAiRunStore? runs,
  InMemoryAiThreadStore? threads,
  InMemoryAiTraceStore? traces,
  InMemoryAiArtifactStore? artifacts,
}) {
  final memoryRuns = runs ?? InMemoryAiRunStore();
  final memoryThreads = threads ?? InMemoryAiThreadStore();
  final memoryTraces = traces ?? InMemoryAiTraceStore();
  final memoryArtifacts = artifacts ?? InMemoryAiArtifactStore();

  return AutoAiRepository._(
    memoryRuns: memoryRuns,
    memoryThreads: memoryThreads,
    memoryTraces: memoryTraces,
    memoryArtifacts: memoryArtifacts,
  );
}