Se realizan los ajustes para la actualizacion del repo DonConfia_Dev
This commit is contained in:
		| @@ -5,7 +5,7 @@ import json | ||||
| import requests | ||||
|  | ||||
|  | ||||
| url = "http://192.168.0.25:8000" | ||||
| url = "http://live.dev:8000" | ||||
| key = "9a9ffc430146447d81e6698240199a4be2b0e774cb18474999d0f60e33b5b1eb1cfff9d9141346a98844879b5a9e787489c891ddc8fb45cc903b7244cab64fb1" | ||||
| db = "tryton" | ||||
| application_name = "sale_don_confiao" | ||||
| @@ -55,7 +55,6 @@ def search_products(product_name: str) -> str: | ||||
|         id_unit_measurement = product["default_uom."]["id"] | ||||
|  | ||||
|         precios += f"- id: {id} - Nombre: {name}: ${precio} - ID Unidad de Medida: {id_unit_measurement}\n" | ||||
|          | ||||
|  | ||||
|     return precios | ||||
|  | ||||
| @@ -79,7 +78,6 @@ def check_price(product_name: str) -> str: | ||||
|     return precios | ||||
|  | ||||
|  | ||||
|  | ||||
| @tool | ||||
| def check_availability(product_name: str) -> str: | ||||
|     """ | ||||
| @@ -99,7 +97,6 @@ def check_availability(product_name: str) -> str: | ||||
|     return disponibilidad | ||||
|  | ||||
|  | ||||
|  | ||||
| @tool | ||||
| def get_product_details(product_name: str) -> str: | ||||
|     """ | ||||
| @@ -111,12 +108,12 @@ def get_product_details(product_name: str) -> str: | ||||
|         stock_status = "En stock" if product["stock"] > 0 else "Agotado" | ||||
|         return f""" | ||||
| Detalles del producto: | ||||
| - Producto: {product['producto']} | ||||
| - Categoría: {product['categoria']} | ||||
| - Unidad de medida: {product['unidad']} | ||||
| - Producto: {product["producto"]} | ||||
| - Categoría: {product["categoria"]} | ||||
| - Unidad de medida: {product["unidad"]} | ||||
| - id unidad de medida: {product["default_uom."]["id"]} | ||||
| - Precio: ${product['precio']:,} | ||||
| - Estado: {stock_status} ({product['stock']} unidades) | ||||
| - Precio: ${product["precio"]:,} | ||||
| - Estado: {stock_status} ({product["stock"]} unidades) | ||||
| """ | ||||
|     return f"No se encontró el producto '{product_name}' en nuestro catálogo." | ||||
|  | ||||
|   | ||||
| @@ -3,7 +3,7 @@ from typing import Optional, List | ||||
| import requests | ||||
| import json | ||||
|  | ||||
| url = "http://192.168.0.25:8000" | ||||
| url = "http://live.dev:8000" | ||||
| key = "9a9ffc430146447d81e6698240199a4be2b0e774cb18474999d0f60e33b5b1eb1cfff9d9141346a98844879b5a9e787489c891ddc8fb45cc903b7244cab64fb1" | ||||
| db = "tryton" | ||||
| application_name = "sale_don_confiao" | ||||
| @@ -11,7 +11,7 @@ url_don_confiao = "{}/{}/{}".format(url, db, application_name) | ||||
| url_order = "{}/{}/{}".format(url, db, "sale_order") | ||||
|  | ||||
|  | ||||
| #@tool | ||||
| @tool | ||||
| def create_party( | ||||
|     party_full_name: str, | ||||
|     contact_method_type: str, | ||||
| @@ -19,18 +19,18 @@ def create_party( | ||||
| ): | ||||
|     """ | ||||
|     Crea un nuevo cliente (party) en el sistema. | ||||
|      | ||||
|  | ||||
|     Args: | ||||
|         party_full_name (str): Nombre completo del cliente. | ||||
|         contact_method_type (str): Tipo de método de contacto (ej. 'email', 'phone'). | ||||
|         contact_method_value (str): Valor del método de contacto (ej. dirección de email o número de teléfono). | ||||
|          | ||||
|  | ||||
|     Returns: | ||||
|         requests.Response: La respuesta del servidor que contiene la información del cliente creado. | ||||
|  | ||||
|     """ | ||||
|      | ||||
|     url = "http://192.168.0.25:8000" | ||||
|  | ||||
|     url = "http://live.dev:8000" | ||||
|     key = "9a9ffc430146447d81e6698240199a4be2b0e774cb18474999d0f60e33b5b1eb1cfff9d9141346a98844879b5a9e787489c891ddc8fb45cc903b7244cab64fb1" | ||||
|     db = "tryton" | ||||
|     application_name = "sale_don_confiao" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user