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
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 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 | |