HongyeYang commited on
Commit
64bea55
·
verified ·
1 Parent(s): f0db43d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -22,13 +22,12 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
22
 
23
  @tool
24
  def calculator(number1: float, number2: float, operation: str) -> float:
25
- """Performs a basic arithmetic calculation on two numbers.
26
 
27
  Args:
28
- number1: The first number.
29
- number2: The second number.
30
- operation: The operation to perform. Must be one of:
31
- add, subtract, multiply, divide.
32
  """
33
  if operation == "add":
34
  return number1 + number2
 
22
 
23
  @tool
24
  def calculator(number1: float, number2: float, operation: str) -> float:
25
+ """对两个数字进行基础算术运算.
26
 
27
  Args:
28
+ number1: 第一个数字。
29
+ number2: 第二个数字。
30
+ operation: 运算类型,可填写 add、subtract、multiply 或 divide
 
31
  """
32
  if operation == "add":
33
  return number1 + number2