from agents.promp_services import bloquear_tarjeta, inversiones, consultar_saldo, creditos

def obtener_agentes(all_tools: list):
    return {
        "consultar_saldo": {
            "descripcion": "*Consultar saldo* de ahorros",
            "otp": True,
            "prompt_func": consultar_saldo,
            "tools": [
                t for t in all_tools
                if t.name.startswith("saldo") or t.name.startswith("otp")
            ]
        },
        "bloquear_tarjeta": {
            "descripcion": "*Bloquear tarjeta* de débito",
            "otp": True,
            "prompt_func": bloquear_tarjeta,
            "tools": [
                t for t in all_tools
                if t.name.startswith("bloquear_tarjeta")
            ]
        },
        "creditos": {
            "descripcion": "*Solicitar créditos*, *consultar su cuota* y *fecha de pago*",
            "otp": True,
            "prompt_func": creditos,
            "tools": [
                t for t in all_tools
                if t.name.startswith("credito") or t.name.startswith("otp")
            ]
        },
        "inversiones": {
            "descripcion": "*Consultar inversiones* (*Plazo fijo*)",
            "otp": True,
            "prompt_func": inversiones,
            "tools": [
                t for t in all_tools
                if t.name.startswith("inversion") or t.name.startswith("otp")
            ]
        }
    }
