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
3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 | |