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:
Mazyar
2026-06-11 01:08:59 +03:30
parent 4f05516fc2
commit 3b26c4f5e1
8 changed files with 389 additions and 10 deletions
+24
View File
@@ -138,6 +138,30 @@ type PipelineActionResponse struct {
Status string `json:"status"`
}
// OnboardingRequest is the payload for POST /onboarding.
type OnboardingRequest struct {
CompanyID string `json:"company_id"`
Documents string `json:"documents"`
WebsiteURL string `json:"website_url"`
}
// OnboardingResponse is returned by POST /onboarding.
type OnboardingResponse struct {
Status string `json:"status"`
}
// RecommendRequest is the payload for POST /recommend.
type RecommendRequest struct {
CompanyID string `json:"company_id"`
}
// RecommendedTender is one ranked tender from POST /recommend.
type RecommendedTender struct {
Rank string `json:"rank"`
TenderID string `json:"tender_id"`
Analysis string `json:"analysis"`
}
// StoredTranslation is one language entry inside tender.json translations map.
type StoredTranslation struct {
Title string `json:"title"`