Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
riolaf05 committed Jul 12, 2024
1 parent 34aec08 commit fe8bfe9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion crewai_components/tools.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from crewai_tools import SerperDevTool, GithubSearchTool
import os
from dotenv import load_dotenv
load_dotenv(override=True)

search_tool = SerperDevTool()

# Initialize the tool for semantic searches within a specific GitHub repository
# https://docs.crewai.com/tools/GitHubSearchTool/?h=github#custom-model-and-embeddings
github_tools = GithubSearchTool(
github_repo=os.getenv('GITHUB_REPO'),
content_types=['code', 'repo'], # Options: code, repo, pr, issue
gh_token=os.getenv('GITHUB_TOKEN'),
content_types=['code'], # Options: code, repo, pr, issue
)
Binary file added db/chroma.sqlite3
Binary file not shown.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
os.environ["GITHUB_REPO"] = "https://github.com/riolaf05/langchain-crewai-agent"
os.environ["TOPIC"] = "Agents with CrewAI and Langchain"
os.environ["GITHUB_REPO"] = "https://github.com/riolaf05/langchain-fastapi-rag-platform.git"
os.environ["TOPIC"] = "Agents with Langchain and FastAPI"

from crewai_components.crews import crew
from dotenv import load_dotenv
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
crewai==0.36.0
crewai-tools==0.4.8
# crewai[tools]
langchain-groq
embedchain[github]

0 comments on commit fe8bfe9

Please sign in to comment.