first commit

This commit is contained in:
Maksim Totmin
2026-10-01 09:50:59 +07:00
commit 4beb4b55d3
29 changed files with 3034 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package lexicomai
import "fmt"
// Доменные ошибки. Инструменты превращают их в errorResult (recoverable —
// модель видит и может исправить), а не в Go-ошибку.
var (
errProductRequired = fmt.Errorf("product is required")
)
// UnknownProductError — модель запросила продукт вне поддерживаемого перечня.
type UnknownProductError struct{ Name string }
func (e *UnknownProductError) Error() string {
return fmt.Sprintf("unknown product %q (not in the supported company products)", e.Name)
}