description="Useful for when you need to spawn an autonomous agent instance as a worker to accomplish complex tasks, it can search the internet or spawn child multi-modality models to process and generate images and text or audio and so on"
)
]
@ -156,11 +156,12 @@ class Swarms:
definitialize_tools(self,llm):
web_search=DuckDuckGoSearchRun()
tools=[
Tool(name='web_search',func=DuckDuckGoSearchRun(),description='Runs a web search'),
Tool(name='write_file_tool',func=WriteFileTool(root_dir=ROOT_DIR),description='Writes a file'),
Tool(name='read_file_tool',func=ReadFileTool(root_dir=ROOT_DIR),description='Reads a file'),
Tool(name='process_csv',func=process_csv,description='Processes a CSV file'),
Tool(name='query_website_tool',func=WebpageQATool(qa_chain=load_qa_with_sources_chain(llm)),description='Queries a website'),