Skip to content

PredictedAction

Source code in docs_src/capo_personalize_runtime/types/predicted_action.py
class PredictedAction(TypedDict, closed=True):
    action_id: NotRequired["capo_personalize_runtime.types.action_id.ActionID"]
    """<p>The ID of the recommended action.</p>"""
    score: NotRequired["capo_personalize_runtime.types.score.Score"]
    """<p>The score of the recommended action. For information about action scores, see <a href="https://docs.aws.amazon.com/personalize/latest/dg/how-action-recommendation-scoring-works.html">How action recommendation scoring works</a>.</p>"""

action_id instance-attribute

action_id: NotRequired[ActionID]

The ID of the recommended action.

score instance-attribute

score: NotRequired[Score]

The score of the recommended action. For information about action scores, see How action recommendation scoring works.