()
return agent
Description: Prompt the user to import their agent
Description: Prompt the user to import their agent
Description : Prompt the user to import their agent
def _agent_prompt():
    """Description: Prompt the user to import their agent"""
    sys.path.append(os.getcwd())
    agent = importlib.import_module(ui.ask_string(constants.Strings.match_import.value))
    agent_class = ui.ask_string(constants.Strings.match_class_name.value)
    if agent_class not in agent.__dir__():
        ui.fatal(constants.Strings.error_invalid_class.value)
    agent = getattr(agent, agent_class)
    if getattr(agent, "act"):
        ui.info(ui.green, constants.Strings.match_agent_success.value)
    return agent
def _agent_prompt ( ) : sys . path . append ( os . getcwd ( ) ) agent = importlib . import_module ( ui . ask_string ( constants . Strings . match_import . value ) ) agent_class = ui . ask_string ( constants . Strings . match_class_name . value ) if agent_class not in agent . __dir__ ( ) : ui . fatal ( constants . Strings . error_invalid_class . value ) agent = getattr ( agent , agent_class ) if getattr ( agent , "act" ) : ui . info ( ui . green , constants . Strings . match_agent_success . value ) return agent