get_profile_recommendations
async
¶
get_profile_recommendations(
domain_name: name,
profile_id: uuid,
recommender_name: name,
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = 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/async_customer_profiles.py
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 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 | |