ingestFromStorage method

Future<MemoryIngestResult> ingestFromStorage({
  1. required String name,
  2. required List<String> paths,
  3. List<String>? namespace,
  4. MemoryIngestStrategy strategy = MemoryIngestStrategy.heuristic,
  5. String? llmModel,
  6. double? llmTemperature,
})

Implementation

Future<MemoryIngestResult> ingestFromStorage({
  required String name,
  required List<String> paths,
  List<String>? namespace,
  MemoryIngestStrategy strategy = MemoryIngestStrategy.heuristic,
  String? llmModel,
  double? llmTemperature,
}) async {
  final response = await _invokeJson("ingest_from_storage", {
    "name": name,
    "namespace": namespace,
    "paths": paths,
    "strategy": strategy.value,
    "llm_model": llmModel,
    "llm_temperature": llmTemperature,
  });
  return MemoryIngestResult.fromJson(response.json, operation: "ingest_from_storage");
}