RankResponse Class

A resulting ordered list of actions that result from a rank request.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
RankResponse

Constructor

RankResponse(**kwargs)

Variables

ranking
list[RankedAction]

The calculated ranking for the current request.

event_id
str

The eventId for the round trip from request to response.

reward_action_id
str

The action chosen by the Personalizer service. This is the action for which to report the reward. This might not be the first found in 'ranking' if an action in the request in first position was part of the excluded ids.