⚠️ Internal: This API is not publically exported by the
package.
Class GetUserBasedItemRecommendationsCommand
Properties
execute
execute: ((__namedParameters) => Promise<{ evaluatedScenarios?: { default?: { scenarioName?: string; scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>; to?: string; }[]; genericDefault?: { scenarioName?: string; scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>; to?: string; }[]; genericRuntime?: { scenarioName?: string; scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>; to?: string; }[]; recommendationType?: NonNullable<"item_to_items" | "profile_to_items" | "session_to_items" | "profile_to_items_w_ctx_items" | "session_to_items_w_ctx_items" | "precomputed_item_to_items" | "precomputed_profile_to_items" | "item_properties_to_items" | "profile_to_item_properties" | "session_to_item_properties" | "profiles_group_to_items" | "chat_to_items" | "generic_input_to_items" | "llm_text_completion" | "llm_chat_completion">; runtime?: { scenarioName?: string; scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>; to?: string; }[]; }; itemIds: string[]; nextCursor?: string; warnings?: string[]; }>) Type declaration
- (__namedParameters): Promise<{
evaluatedScenarios?: {
default?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
genericDefault?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
genericRuntime?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
recommendationType?: NonNullable<"item_to_items" | "profile_to_items" | "session_to_items" | "profile_to_items_w_ctx_items" | "session_to_items_w_ctx_items" | "precomputed_item_to_items" | "precomputed_profile_to_items" | "item_properties_to_items" | "profile_to_item_properties" | "session_to_item_properties" | "profiles_group_to_items" | "chat_to_items" | "generic_input_to_items" | "llm_text_completion" | "llm_chat_completion">;
runtime?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
};
itemIds: string[];
nextCursor?: string;
warnings?: string[];
}> Returns Promise<{
evaluatedScenarios?: {
default?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
genericDefault?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
genericRuntime?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
recommendationType?: NonNullable<"item_to_items" | "profile_to_items" | "session_to_items" | "profile_to_items_w_ctx_items" | "session_to_items_w_ctx_items" | "precomputed_item_to_items" | "precomputed_profile_to_items" | "item_properties_to_items" | "profile_to_item_properties" | "session_to_item_properties" | "profiles_group_to_items" | "chat_to_items" | "generic_input_to_items" | "llm_text_completion" | "llm_chat_completion">;
runtime?: {
scenarioName?: string;
scenarioType?: NonNullable<NonNullable<"alias" | "ab_test" | "case" | "condition">>;
to?: string;
}[];
};
itemIds: string[];
nextCursor?: string;
warnings?: string[];
}>
https://docs.api.crossingminds.com/endpoints/reco.html#get-profile-based-items-recommendations
Throws
if the response payload does not match the expected structure
Throws
if the API request fails