Implement AI onboarding and recommendation features in company service
- Added new AI onboarding and recommendation endpoints in the company handler for starting onboarding and retrieving ranked tender recommendations. - Introduced `StartAIOnboarding` and `GetAIRecommendations` methods in the company service to handle AI interactions. - Updated the company service constructor to include the AI recommendation client. - Enhanced the AI summarizer client with methods for onboarding and fetching recommendations. - Added response structures for onboarding and recommended tenders in the company form. This update enhances the tender management system by integrating AI capabilities for onboarding and tender recommendations, improving user experience and operational efficiency.
This commit is contained in:
@@ -185,6 +185,18 @@ func (c *CompanyTags) ToResponse(categories []*CategoryResponse) *CompanyTagsRes
|
||||
}
|
||||
}
|
||||
|
||||
// OnboardingResponse is returned after starting AI company onboarding.
|
||||
type OnboardingResponse struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
// RecommendedTenderResponse is one ranked tender recommendation from the AI service.
|
||||
type RecommendedTenderResponse struct {
|
||||
Rank string `json:"rank"`
|
||||
TenderID string `json:"tender_id"`
|
||||
Analysis string `json:"analysis"`
|
||||
}
|
||||
|
||||
// CompanyProfileResponse represents the company profile data sent in API responses
|
||||
type CompanyProfileResponse struct {
|
||||
ID string `json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user