Enhance tender response structure and update recommendation handler
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
- Added new fields `Rank` and `Analysis` to the `TenderResponse` struct for improved data representation. - Updated the `RecommendTenders` handler to reflect changes in API documentation, including a new summary and description for AI-ranked tender recommendations. - Improved error handling in the recommendation process, ensuring appropriate responses for missing company IDs and unavailable AI services. This update enhances the tender response capabilities and improves the clarity of the recommendation API, aligning with the overall goal of providing better insights for users.
This commit is contained in:
@@ -233,6 +233,9 @@ type TenderResponse struct {
|
||||
|
||||
OverallSummary string `json:"overall_summary,omitempty"`
|
||||
Language string `json:"language,omitempty"`
|
||||
|
||||
Rank string `json:"rank,omitempty"`
|
||||
Analysis string `json:"analysis,omitempty"`
|
||||
}
|
||||
|
||||
// TenderDocumentResponse represents a scraped tender document available for download.
|
||||
|
||||
Reference in New Issue
Block a user