samih-7 commited on
Commit
1ea32f6
·
verified ·
1 Parent(s): 1ca849c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ ddg = DuckDuckGoSearchTool(max_results=5)
15
  @tool
16
  def github_issues(repo: str, state: str = "open", limit: int = 5) -> str:
17
  """
18
- Fetch recent issues from a public GitHub repo.
19
 
20
  Args:
21
  repo: GitHub repo in the form "owner/name" (e.g. "facebook/react").
@@ -50,7 +50,7 @@ def github_issues(repo: str, state: str = "open", limit: int = 5) -> str:
50
  if not issues:
51
  return f"ℹ️ No issues found for repo '{repo}' (state={state})"
52
 
53
- return issues
54
 
55
  @tool
56
  def web_search(query:str)-> str:
 
15
  @tool
16
  def github_issues(repo: str, state: str = "open", limit: int = 5) -> str:
17
  """
18
+ Fetch recent issues from a public GitHub repo. Returns a read-to-display list of results (no need for parsing).
19
 
20
  Args:
21
  repo: GitHub repo in the form "owner/name" (e.g. "facebook/react").
 
50
  if not issues:
51
  return f"ℹ️ No issues found for repo '{repo}' (state={state})"
52
 
53
+ return f"📌 GitHub issues for **{repo}** (state={state}):\n" + "\n".join(issues)
54
 
55
  @tool
56
  def web_search(query:str)-> str: