pub async fn preprocess_attachments(
__arg0: State<UnifiedAppState>,
__arg1: Json<PreprocessRequest>,
) -> (StatusCode, Json<PreprocessResponse>)Expand description
POST /attachments/preprocess
Accepts a list of file attachments and immediately spawns background extraction tasks — one per file. Returns before any extraction completes.
The next /generate/stream call for those same files will find the results
in shared_state.attachment_cache and skip re-extraction entirely.