Files
tm_back/internal/tender/errors.go
T
Mazyar e04cdd1d10
continuous-integration/drone/push Build is passing
Refactor AI summarization functionality by removing document summarization worker
- Removed the DocumentSummarizationWorker and its related scheduling logic from the worker bootstrap.
- Updated the AI summarizer client initialization comment for clarity.
- Added a new error type for cases when tender documents have not been scraped yet, enhancing error handling in the tender service.
- Modified API documentation to reflect changes in AI summary retrieval logic, ensuring accurate descriptions of on-demand summarization behavior.

This update streamlines the AI summarization process by eliminating the document summarization worker, improving overall system efficiency and clarity in error handling.
2026-06-21 11:20:28 +03:30

15 lines
651 B
Go

package tender
import "errors"
// Sentinel errors for AI trigger operations and HTTP mapping.
var (
ErrEmptyTenderID = errors.New("tender: id is required")
ErrInvalidTenderID = errors.New("tender: invalid id")
ErrTenderNotFound = errors.New("tender: not found")
ErrTenderMissingNoticeID = errors.New("tender: missing notice publication id")
ErrTenderMissingContractFolderID = errors.New("tender: missing contract folder id")
ErrTenderDocumentsNotScraped = errors.New("tender: documents not scraped")
ErrAINotConfigured = errors.New("tender: ai service not configured")
)