get_profile_recommendations
¶
get_profile_recommendations(
domain_name: name,
profile_id: uuid,
recommender_name: name,
*,
config_overrides: Optional[CustomerProfilesClientConfig] = None,
context: Optional[RecommenderContext] = None,
recommender_filters: Optional[RecommenderFilters] = None,
recommender_promotional_filters: Optional[RecommenderPromotionalFilters] = None,
candidate_ids: Optional[CandidateIdList] = None,
max_results: Optional[MaxSize500] = None,
metadata_config: Optional[MetadataConfig] = None,
diversity_config: Optional[RecommendationDiversityConfig] = None,
) -> GetProfileRecommendationsResponse
Fetches the recommendations for a profile in the input Customer Profiles domain. Fetches all the profile recommendations
Parameters:
-
domain_name(name) –The unique name of the domain.
-
profile_id(uuid) –The unique identifier of the profile for which to retrieve recommendations.
-
recommender_name(name) –The unique name of the recommender.
-
context(Optional[RecommenderContext], default:None) –The contextual metadata used to provide dynamic runtime information to tailor recommendations.
-
recommender_filters(Optional[RecommenderFilters], default:None) –A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
-
recommender_promotional_filters(Optional[RecommenderPromotionalFilters], default:None) –A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.
-
candidate_ids(Optional[CandidateIdList], default:None) –A list of item IDs to rank for the user. Use this when you want to re-rank a specific set of items rather than getting recommendations from the full item catalog. Required for personalized-ranking use cases.
-
max_results(Optional[MaxSize500], default:None) –The maximum number of recommendations to return. The default value is 10.
-
metadata_config(Optional[MetadataConfig], default:None) –Configuration for including item metadata in the recommendation response. Use this to specify which metadata columns to return alongside recommended items.
-
diversity_config(Optional[RecommendationDiversityConfig], default:None) –Runtime diversity configuration for this request. Enables diversity-aware recommendations and optionally supplies values for placeholder-based diversity caps configured on the recommender.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
BadRequestException–The input you provided is invalid.
-
InternalServerException–An internal service error occurred.
-
ResourceNotFoundException–The requested resource does not exist, or access was denied.
-
ThrottlingException–You exceeded the maximum number of requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_customer_profiles/_services/customer_profiles.py
4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 | |