pgpt19 commited on
Commit
9dee6a3
·
verified ·
1 Parent(s): a938251

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -15
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
- Multiplies two integers and returns the result.
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
- Parameters:
46
- ----------
47
- a : int
48
- The first integer to be multiplied.
49
- b : int
50
- The second integer to be multiplied.
51
 
52
  Returns:
53
- -------
54
- int
55
- The product of `a` and `b`.
 
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
  -------