]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
feat(ERP-292): LlmVerifyResult DTO
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 30 Apr 2026 15:07:48 +0000 (18:07 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 30 Apr 2026 15:07:48 +0000 (18:07 +0300)
erp24/services/automark/LlmVerifyResult.php [new file with mode: 0644]

diff --git a/erp24/services/automark/LlmVerifyResult.php b/erp24/services/automark/LlmVerifyResult.php
new file mode 100644 (file)
index 0000000..4b9c6a8
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+declare(strict_types=1);
+
+namespace yii_app\services\automark;
+
+final class LlmVerifyResult
+{
+    public function __construct(
+        public readonly int     $predictionId,
+        public readonly string  $verdict,
+        public readonly ?string $comment,
+    ) {}
+
+    public function isApproved(): bool
+    {
+        return $this->verdict === 'approved';
+    }
+}