Files
crewAI/lib/crewai-tools/tests/rag/test_github_loader.py
Devin AI 065346a20b fix: pass kwargs to loader in CrewAIRagAdapter to enable private repo access
Fixes #4088

The GithubSearchTool was unable to access private repositories because
the CrewAIRagAdapter.add() method was not passing kwargs (including
metadata with gh_token) to the loader.load() call.

This fix ensures that kwargs are properly forwarded to the loader,
allowing the GithubLoader to receive the gh_token for authentication.

Added tests:
- test_github_loader.py: Unit tests for GithubLoader
- test_crewai_rag_adapter.py: Tests for kwargs passthrough in adapter

Co-Authored-By: João <joao@crewai.com>
2025-12-16 02:05:07 +00:00

6.8 KiB