WeByT3 commited on
Commit
e04cf15
·
verified ·
1 Parent(s): 3823b6b

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -85,7 +85,7 @@ def search_wikipedia(page_title: str, language: str) -> str:
85
 
86
  table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
87
 
88
- return f"Title: {page.title}\n\nText: {page.summary}\n\n{table_output}"
89
 
90
  except Exception as e:
91
  return f"Error retrieving Wikipedia content: {str(e)}"
 
85
 
86
  table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
87
 
88
+ return f"Title: {page.title}\n\nText: {page.summary[:200]}\n\n{table_output}"
89
 
90
  except Exception as e:
91
  return f"Error retrieving Wikipedia content: {str(e)}"