@@ -396,7 +396,7 @@ async def search_from_tavily(
396396 return "Error: Tavily web searcher does not return any results."
397397
398398 ret_ls = []
399- ref_uuid = str (uuid .uuid4 ())[: 4 ]
399+ ref_uuid = str (uuid .uuid4 ())
400400 for idx , result in enumerate (results , 1 ):
401401 index = f"{ ref_uuid } .{ idx } "
402402 ret_ls .append (
@@ -425,7 +425,7 @@ async def tavily_extract_web_page(
425425 """Extract the content of a web page using Tavily.
426426
427427 Args:
428- url(string): Required. An URl to extract content from.
428+ url(string): Required. A URL to extract content from.
429429 extract_depth(string): Optional. The depth of the extraction, must be one of 'basic', 'advanced'. Default is "basic".
430430 timeout(number): Optional. Request timeout in seconds. Minimum is 30. Default is 30.
431431
@@ -595,7 +595,7 @@ async def search_from_bocha(
595595 return "Error: BoCha web searcher does not return any results."
596596
597597 ret_ls = []
598- ref_uuid = str (uuid .uuid4 ())[: 4 ]
598+ ref_uuid = str (uuid .uuid4 ())
599599 for idx , result in enumerate (results , 1 ):
600600 index = f"{ ref_uuid } .{ idx } "
601601 ret_ls .append (
@@ -717,7 +717,7 @@ async def search_from_exa(
717717 return "Error: Exa web searcher does not return any results."
718718
719719 ret_ls = []
720- ref_uuid = str (uuid .uuid4 ())[: 4 ]
720+ ref_uuid = str (uuid .uuid4 ())
721721 for idx , result in enumerate (results , 1 ):
722722 index = f"{ ref_uuid } .{ idx } "
723723 ret_ls .append (
@@ -869,7 +869,7 @@ async def find_similar_links(
869869 return "Error: Exa find similar does not return any results."
870870
871871 ret_ls = []
872- ref_uuid = str (uuid .uuid4 ())[: 4 ]
872+ ref_uuid = str (uuid .uuid4 ())
873873 for idx , result in enumerate (results , 1 ):
874874 index = f"{ ref_uuid } .{ idx } "
875875 ret_ls .append (
0 commit comments