tomaslucas commited on
Commit
73c9233
·
verified ·
1 Parent(s): c2788c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
33
  import requests
34
 
35
  @tool
36
- def get_book():
37
  """A tool that fetches the Harry Potter books with information about them.
38
  Args:
39
  """
@@ -43,7 +43,7 @@ def get_book():
43
  return libros
44
 
45
  @tool
46
- def filter_book(libro, campo, valor, operador='=='):
47
  """
48
  Filtra libros según un campo, valor y operador especificados
49
  operadores permitidos: ==, >, <, >=, <=, contains
 
33
  import requests
34
 
35
  @tool
36
+ def get_book() -> List[PotterBook]
37
  """A tool that fetches the Harry Potter books with information about them.
38
  Args:
39
  """
 
43
  return libros
44
 
45
  @tool
46
+ def filter_book(libro, campo, valor, operador='==') -> List:
47
  """
48
  Filtra libros según un campo, valor y operador especificados
49
  operadores permitidos: ==, >, <, >=, <=, contains