Download app.py from agents-course/First_agent_template: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/agents-course/First_agent_template/resolve/refs%2Fpr%2F783/app.py
- Command line
-
hf download hf://spaces/agents-course/First_agent_template@refs/pr/783/app.py
-
curl -L -o app.py https://huggingface.co/spaces/agents-course/First_agent_template/resolve/refs%2Fpr%2F783/app.py
1.08 kB
| def cotizar_evento_all_inclusive(numero_asistentes: int) -> str: | |
| """Una herramienta que calcula el costo total de un evento corporativo campestre 'Todo Incluido' (All-Inclusive). | |
| Args: | |
| numero_asistentes: El número total de colaboradores o personas que asistirán al evento. | |
| """ | |
| # Tarifa base extraída de la cotización estándar | |
| tarifa_por_persona = 270182 | |
| # Cálculos | |
| subtotal = numero_asistentes * tarifa_por_persona | |
| iva = subtotal * 0.19 # IVA del 19% en Colombia | |
| total_con_iva = subtotal + iva | |
| # Formatear la respuesta que el agente leerá y usará | |
| resultado = ( | |
| f"Cotización estimada para {numero_asistentes} personas:\n" | |
| f"- Subtotal: ${subtotal:,.0f} COP\n" | |
| f"- IVA (19%): ${iva:,.0f} COP\n" | |
| f"- Total a pagar: ${total_con_iva:,.0f} COP\n\n" | |
| f"El paquete incluye: Sede exclusiva por 12 horas, transporte de turismo, " | |
| f"producción técnica con DJ, catering en 4 tiempos, 3 cervezas por persona y staff logístico." | |
| ) | |
| return resultado |