Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,24 +35,18 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def multiply_numbers(a: int, b: int) -> int:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
This function takes two integers `a` and `b`, multiplies them, and returns
|
| 42 |
-
the product. It is designed to be used as a LangChain tool that can be
|
| 43 |
-
called by agents or workflows in the LangChain ecosystem.
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
The first integer to be multiplied.
|
| 49 |
-
b : int
|
| 50 |
-
The second integer to be multiplied.
|
| 51 |
|
| 52 |
Returns:
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
|
|
|
| 56 |
|
| 57 |
Example:
|
| 58 |
-------
|
|
|
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def multiply_numbers(a: int, b: int) -> int:
|
| 38 |
+
"""
|
| 39 |
+
Multiply two integers.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
Args:
|
| 42 |
+
a (int): The first number.
|
| 43 |
+
b (int): The second number.
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
Returns:
|
| 46 |
+
int: The result of multiplying a and b.
|
| 47 |
+
|
| 48 |
+
Raises:
|
| 49 |
+
ValueError: If an unexpected error occurs during multiplication.
|
| 50 |
|
| 51 |
Example:
|
| 52 |
-------
|