ai-codebase-intelligence / agents /researcher_agent.py
pkraman06's picture
Create researcher_agent.py
9c7630d verified
raw
history blame contribute delete
462 Bytes
from crewai import Agent
from tools.code_search_tool import CodeSearchTool
from tools.web_search_tool import WebSearchTool
def create_researcher_agent(vector_db):
return Agent(
role="Researcher",
goal="Retrieve relevant code and documentation",
backstory="Specialist in semantic code retrieval and research.",
tools=[
CodeSearchTool(vector_db),
WebSearchTool(),
],
verbose=True,
)