LukeMattingly
commited on
Commit
·
0a1f3e9
1
Parent(s):
8cd4850
rename main function
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from duckduckgo_search import DDGS
|
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
@tool
|
12 |
-
def
|
13 |
"""Searches for code in the github repo given it's url using DuckDuckGo.
|
14 |
|
15 |
Args:
|
@@ -70,7 +70,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
70 |
|
71 |
agent = CodeAgent(
|
72 |
model=model,
|
73 |
-
tools=[final_answer,
|
74 |
max_steps=6,
|
75 |
verbosity_level=1,
|
76 |
grammar=None,
|
|
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
@tool
|
12 |
+
def search_my_code(github_url:str, code:str)-> str:
|
13 |
"""Searches for code in the github repo given it's url using DuckDuckGo.
|
14 |
|
15 |
Args:
|
|
|
70 |
|
71 |
agent = CodeAgent(
|
72 |
model=model,
|
73 |
+
tools=[final_answer, search_my_code], ## add your tools here (don't remove final answer)
|
74 |
max_steps=6,
|
75 |
verbosity_level=1,
|
76 |
grammar=None,
|