jobRepository->findById(Uuid::fromString($message->jobId)); if (null === $job) { return; } $job->markProcessing(); $this->jobRepository->save($job); $result = $this->visionAgent->analyze($message->storedPhotoPath); if ('' === $result['model']) { $job->markNeedsReview('OllamaVisionAgent: no model name detected on nameplate'); $this->jobRepository->save($job); return; } $this->bus->dispatch(new SpecsResearchMessage( jobId: $message->jobId, articleTypeId: $message->articleTypeId, modelName: $result['model'], serialNumber: $result['serial'], )); } }