from bridges.python.src.sdk.leon import leon
from bridges.python.src.sdk.types import ActionParams


def run(params: ActionParams) ->None:
    """Ask for a retry"""
    resolvers = params['resolvers']
    decision = False
    for resolver in resolvers:
        if resolver['name'] == 'affirmation_denial':
            decision = resolver['value']
    if decision:
        return leon.answer({'key': 'confirm_retry', 'core': {
            'isInActionLoop': False, 'restart': True}})
    leon.answer({'key': 'deny_retry', 'core': {'isInActionLoop': False}})

f2be5f29b5933d87f1297c727c1c2a3347300e4d
<mask token>

<mask token>


def run(params: ActionParams) ->None:
    """Ask for a retry"""
    resolvers = params['resolvers']
    decision = False
    for resolver in resolvers:
        if resolver['name'] == 'affirmation_denial':
            decision = resolver['value']
    if decision:
        return leon.answer({'key': 'confirm_retry', 'core': {
            'isInActionLoop': False, 'restart': True}})
    leon.answer({'key': 'deny_retry', 'core': {'isInActionLoop': False}})

from bridges.python.src.sdk.leon import leon
from bridges.python.src.sdk.types import ActionParams


def run(params: ActionParams) ->None:
    """Ask for a retry"""
    resolvers = params['resolvers']
    decision = False
    for resolver in resolvers:
        if resolver['name'] == 'affirmation_denial':
            decision = resolver['value']
    if decision:
        return leon.answer({'key': 'confirm_retry', 'core': {
            'isInActionLoop': False, 'restart': True}})
    leon.answer({'key': 'deny_retry', 'core': {'isInActionLoop': False}})
