e04cdd1d10
continuous-integration/drone/push Build is passing
- 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.
15 lines
651 B
Go
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")
|
|
)
|