Perform an automated compliance and liability risk assessment for autonomous onboarding, hiring, or payments.
Args:
state: Two-letter US state code ('CA', 'FL', or 'TX'). Required.
entity_name: Company name or DBA to assess.
license_number: State license number to assess.
trade: Trade category: 'roofing', 'hvac', 'electrical', 'plumbing', 'general_contractor', or 'any'.
require_workers_comp: If true, fails compliance if no verified workers' comp policy is active on file.
require_surety_bond: If true, fails compliance if contractor bond is inactive or missing.
max_disciplinary_actions: Maximum allowed board citations or disciplinary orders (default 0).
min_confidence_score: Minimum entity name match confidence threshold (0.0 to 1.0, default 0.85).
Returns:
JSON with 'can_hire' boolean, 'risk_level' ('LOW', 'MEDIUM', 'HIGH', 'CRITICAL'),
'risk_score' (0.0 to 100.0), specific 'flags', and the full underlying verification result.