|string> */ public function rules(): array { return [ 'title' => ['required', 'string', 'max:255'], 'company_name' => ['nullable', 'string', 'max:255'], 'company_address' => ['nullable', 'string'], 'company_whatsapp' => ['nullable', 'string', 'max:255'], 'company_website' => ['nullable', 'url', 'max:255'], 'company_social_media' => ['nullable', 'string'], 'company_business_activities' => ['nullable', 'string'], 'company_services_products' => ['nullable', 'string'], 'objective' => ['required', 'string'], 'context' => ['nullable', 'string'], 'persona' => ['nullable', 'string', 'max:255'], 'tone' => ['nullable', 'string', 'max:255'], 'constraints' => ['nullable', 'string'], 'output_format' => ['nullable', 'string'], 'examples' => ['nullable', 'string'], 'variables' => ['nullable', 'string'], 'temperature' => ['nullable', 'numeric', 'min:0', 'max:1'], 'max_tokens' => ['nullable', 'integer', 'min:1'], 'provider_id' => ['nullable', 'exists:ai_providers,id'], 'model_id' => ['nullable', 'exists:ai_models,id'], ]; } }