Spaces:
Sleeping
Sleeping
| from langchain.tools import tool | |
| def multiply(a: float, b: float) -> float: | |
| """ | |
| Multiplie deux nombres. | |
| :param a: Le premier nombre à multiplier. | |
| :param b: Le deuxième nombre à multiplier. | |
| :return: Le produit de a et b. | |
| """ | |
| return a * b | |
| def substract(a: float, b: float) -> float: | |
| """ | |
| Soustrait b de a. | |
| :param a: Le nombre duquel soustraire. | |
| :param b: Le nombre à soustraire. | |
| :return: La différence entre a et b. | |
| """ | |
| return a - b | |
| def add(a: float, b: float) -> float: | |
| """ | |
| Additionne deux nombres. | |
| :param a: Le premier nombre. | |
| :param b: Le deuxième nombre. | |
| :return: La somme de a et b. | |
| """ | |
| return a + b | |
| def divide(a: float, b: float) -> float: | |
| """ | |
| Divise a par b. | |
| :param a: Le numérateur. | |
| :param b: Le dénominateur. | |
| :return: Le résultat de la division de a par b. | |
| :raises ZeroDivisionError: Si b est égal à zéro. | |
| """ | |
| return a / b |