lwant commited on
Commit
7eff6fa
Β·
1 Parent(s): f5cf0c8

Remove old implementation

Browse files
Files changed (1) hide show
  1. src/gaia_solving_agent/agent.py +0 -45
src/gaia_solving_agent/agent.py CHANGED
@@ -166,51 +166,6 @@ The sub-tasks are :
166
  return StopEvent(result=result.text, reasoning=ev.plan)
167
 
168
 
169
- tavily_search_engine = FunctionAgent(
170
- tools=[tavily_search_web],
171
- llm=get_llm(),
172
- system_prompt="""
173
- You are a helpful assistant that does web searches.
174
- Convert the user need into one or multiple web searches.
175
- Each web search should aim for one specific topic.
176
- A topic is defined as one to few words.
177
- If the user needs to search for multiple topics, make multiple searches.
178
- """,
179
- name="search_engine_agent",
180
- can_handoff_to = ["visit_web_page_agent"],
181
- description="Agent that makes web searches to answer questions."
182
- )
183
-
184
- visit_web_page_agent = FunctionAgent(
185
- tools=[
186
- *RequestsToolSpec().to_tool_list(),
187
- *simple_web_page_reader_toolspec.to_tool_list(),
188
- ],
189
- llm=get_llm(),
190
- system_prompt="""
191
- You are a helpful assistant that visit a website.
192
- Given a url, you should visit the web page and return a summary of the page.
193
- The summary should answer the concerns of the user.
194
-
195
- If the url is invalid, return "Invalid URL".
196
- If the url is not a web page, return "Not a web page".
197
- If the url is not reachable, return "Not reachable".
198
- """,
199
- name="visit_web_page_agent",
200
- description="Agent that visit a web page and return a summary of the page."
201
- )
202
-
203
- wikipedia_agent = FunctionAgent(
204
- tools=[*load_and_search_tools_from_toolspec(WikipediaToolSpec())],
205
- llm=get_llm(),
206
- system_prompt="""
207
- You are a helpful assistant that searches Wikipedia and visit Wikipedia pages.
208
- """,
209
- name="wikipedia_agent",
210
- description="Agent that searches Wikipedia and visit Wikipedia pages."
211
- )
212
-
213
-
214
  gaia_solving_agent = FunctionAgent(
215
  tools = [
216
  get_text_representation_of_additional_file,
 
166
  return StopEvent(result=result.text, reasoning=ev.plan)
167
 
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  gaia_solving_agent = FunctionAgent(
170
  tools = [
171
  get_text_representation_of_additional_file,