search->search("{$subject} {$articleTypeName} specifications"); $prompt = $this->prompts->render('specs_research', [ 'articleType' => $articleTypeName, 'subject' => $subject, 'searchResults' => $searchResults !== '' ? $searchResults : 'No web results available.', ]); $result = $this->client->generate($this->model, $prompt); if ('' === trim($result)) { throw new \RuntimeException("No specifications found for model: {$modelName}"); } return $result; } }