ingestFile method
Implementation
Future<MemoryIngestResult> ingestFile({
required String name,
String? path,
String? text,
String? mimeType,
List<String>? namespace,
MemoryIngestStrategy strategy = MemoryIngestStrategy.heuristic,
String? llmModel,
double? llmTemperature,
}) async {
final response = await _invokeJson("ingest_file", {
"name": name,
"namespace": namespace,
"path": path,
"text": text,
"mime_type": mimeType,
"strategy": strategy.value,
"llm_model": llmModel,
"llm_temperature": llmTemperature,
});
return MemoryIngestResult.fromJson(response.json, operation: "ingest_file");
}