Files
Termind/Frameworks/TermindInfrastructure/Agent/ContextAttachmentLoading+Live.swift
T
2026-09-11 21:07:44 +08:00

8 lines
264 B
Swift

import TermindApplication
extension ContextAttachmentLoading {
public static let live = Self(
file: { try await ContextAttachmentImporter.importFile(at: $0) },
image: { try await ContextAttachmentImporter.importImage(data: $0, label: $1) })
}