repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/scrapfly_scrape_website_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/scrapfly_scrape_website_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/txt_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/txt_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/txt_search_tool/txt_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/txt_search_tool/txt_search_tool.py
from pydantic import BaseModel, Field, model_validator from typing_extensions import Self from crewai_tools.tools.rag.rag_tool import RagTool class FixedTXTSearchToolSchema(BaseModel): """Input for TXTSearchTool.""" search_query: str = Field( ..., description="Mandatory search query you want...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/directory_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/directory_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/directory_search_tool/directory_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/directory_search_tool/directory_search_tool.py
from pydantic import BaseModel, Field from crewai_tools.rag.data_types import DataType from crewai_tools.tools.rag.rag_tool import RagTool class FixedDirectorySearchToolSchema(BaseModel): """Input for DirectorySearchTool.""" search_query: str = Field( ..., description="Mandatory search query...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/mdx_search_tool/mdx_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/mdx_search_tool/mdx_search_tool.py
from pydantic import BaseModel, Field from crewai_tools.rag.data_types import DataType from crewai_tools.tools.rag.rag_tool import RagTool class FixedMDXSearchToolSchema(BaseModel): """Input for MDXSearchTool.""" search_query: str = Field( ..., description="Mandatory search query you want to...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/mdx_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/mdx_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/__init__.py
"""Merge Agent Handler tool for CrewAI.""" from crewai_tools.tools.merge_agent_handler_tool.merge_agent_handler_tool import ( MergeAgentHandlerTool, ) __all__ = ["MergeAgentHandlerTool"]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py
"""Merge Agent Handler tools wrapper for CrewAI.""" import json import logging from typing import Any from uuid import uuid4 from crewai.tools import BaseTool, EnvVar from pydantic import BaseModel, Field, create_model import requests import typing_extensions as te logger = logging.getLogger(__name__) class Merge...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serper_scrape_website_tool/serper_scrape_website_tool.py
lib/crewai-tools/src/crewai_tools/tools/serper_scrape_website_tool/serper_scrape_website_tool.py
import json import os from crewai.tools import BaseTool, EnvVar from pydantic import BaseModel, Field import requests class SerperScrapeWebsiteInput(BaseModel): """Input schema for SerperScrapeWebsite.""" url: str = Field(..., description="The URL of the website to scrape") include_markdown: bool = Fiel...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serper_scrape_website_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/serper_scrape_website_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/json_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/json_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/json_search_tool/json_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/json_search_tool/json_search_tool.py
from pydantic import BaseModel, Field from crewai_tools.tools.rag.rag_tool import RagTool class FixedJSONSearchToolSchema(BaseModel): """Input for JSONSearchTool.""" search_query: str = Field( ..., description="Mandatory search query you want to use to search the JSON's content", ) cla...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py
from collections.abc import Callable from typing import Any from crewai.tools import BaseTool, EnvVar from pydantic import BaseModel, Field try: from singlestoredb import connect from sqlalchemy.pool import QueuePool SINGLSTORE_AVAILABLE = True except ImportError: SINGLSTORE_AVAILABLE = False cla...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/__init__.py
from crewai_tools.tools.singlestore_search_tool.singlestore_search_tool import ( SingleStoreSearchTool, SingleStoreSearchToolSchema, ) __all__ = [ "SingleStoreSearchTool", "SingleStoreSearchToolSchema", ]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/scrape_website_tool/scrape_website_tool.py
lib/crewai-tools/src/crewai_tools/tools/scrape_website_tool/scrape_website_tool.py
import os import re from typing import Any from pydantic import Field import requests try: from bs4 import BeautifulSoup BEAUTIFULSOUP_AVAILABLE = True except ImportError: BEAUTIFULSOUP_AVAILABLE = False from crewai.tools import BaseTool from pydantic import BaseModel class FixedScrapeWebsiteToolSchem...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/scrape_website_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/scrape_website_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/firecrawl_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/firecrawl_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/firecrawl_search_tool/firecrawl_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/firecrawl_search_tool/firecrawl_search_tool.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from crewai.tools import BaseTool, EnvVar from pydantic import BaseModel, ConfigDict, Field, PrivateAttr if TYPE_CHECKING: from firecrawl import FirecrawlApp # type: ignore[import-untyped] try: from firecrawl import FirecrawlApp # ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/snowflake_search_tool/snowflake_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/snowflake_search_tool/snowflake_search_tool.py
from __future__ import annotations import asyncio from concurrent.futures import ThreadPoolExecutor import logging from typing import TYPE_CHECKING, Any from crewai.tools.base_tool import BaseTool from pydantic import BaseModel, ConfigDict, Field, SecretStr if TYPE_CHECKING: # Import types for type checking onl...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/snowflake_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/snowflake_search_tool/__init__.py
from crewai_tools.tools.snowflake_search_tool.snowflake_search_tool import ( SnowflakeConfig, SnowflakeSearchTool, SnowflakeSearchToolInput, ) __all__ = [ "SnowflakeConfig", "SnowflakeSearchTool", "SnowflakeSearchToolInput", ]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/serpapi_google_shopping_tool.py
lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/serpapi_google_shopping_tool.py
from typing import Any from pydantic import BaseModel, ConfigDict, Field from crewai_tools.tools.serpapi_tool.serpapi_base_tool import SerpApiBaseTool try: from serpapi import HTTPError # type: ignore[import-untyped] except ImportError: HTTPError = Any class SerpApiGoogleShoppingToolSchema(BaseModel): ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/serpapi_google_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/serpapi_google_search_tool.py
from typing import Any from pydantic import BaseModel, ConfigDict, Field from crewai_tools.tools.serpapi_tool.serpapi_base_tool import SerpApiBaseTool try: from serpapi import HTTPError # type: ignore[import-untyped] except ImportError: HTTPError = Any class SerpApiGoogleSearchToolSchema(BaseModel): ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/serpapi_base_tool.py
lib/crewai-tools/src/crewai_tools/tools/serpapi_tool/serpapi_base_tool.py
import os import re from typing import Any from crewai.tools import BaseTool, EnvVar from pydantic import Field class SerpApiBaseTool(BaseTool): """Base class for SerpApi functionality with shared capabilities.""" package_dependencies: list[str] = Field(default_factory=lambda: ["serpapi"]) env_vars: lis...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/youtube_video_search_tool/youtube_video_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/youtube_video_search_tool/youtube_video_search_tool.py
from pydantic import BaseModel, Field from crewai_tools.rag.data_types import DataType from crewai_tools.tools.rag.rag_tool import RagTool class FixedYoutubeVideoSearchToolSchema(BaseModel): """Input for YoutubeVideoSearchTool.""" search_query: str = Field( ..., description="Mandatory search...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/youtube_video_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/youtube_video_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/file_read_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/file_read_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/file_read_tool/file_read_tool.py
lib/crewai-tools/src/crewai_tools/tools/file_read_tool/file_read_tool.py
from typing import Any from crewai.tools import BaseTool from pydantic import BaseModel, Field class FileReadToolSchema(BaseModel): """Input for FileReadTool.""" file_path: str = Field(..., description="Mandatory file full path to read the file") start_line: int | None = Field( 1, description="L...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/__init__.py
lib/crewai-tools/src/crewai_tools/aws/__init__.py
from crewai_tools.aws.bedrock import ( BedrockInvokeAgentTool, BedrockKBRetrieverTool, create_browser_toolkit, create_code_interpreter_toolkit, ) from crewai_tools.aws.s3 import S3ReaderTool, S3WriterTool __all__ = [ "BedrockInvokeAgentTool", "BedrockKBRetrieverTool", "S3ReaderTool", "...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/s3/writer_tool.py
lib/crewai-tools/src/crewai_tools/aws/s3/writer_tool.py
import os from crewai.tools import BaseTool from pydantic import BaseModel, Field class S3WriterToolInput(BaseModel): """Input schema for S3WriterTool.""" file_path: str = Field( ..., description="S3 file path (e.g., 's3://bucket-name/file-name')" ) content: str = Field(..., description="Con...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/s3/__init__.py
lib/crewai-tools/src/crewai_tools/aws/s3/__init__.py
from crewai_tools.aws.s3.reader_tool import S3ReaderTool as S3ReaderTool from crewai_tools.aws.s3.writer_tool import S3WriterTool as S3WriterTool
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/s3/reader_tool.py
lib/crewai-tools/src/crewai_tools/aws/s3/reader_tool.py
import os from crewai.tools import BaseTool from pydantic import BaseModel, Field class S3ReaderToolInput(BaseModel): """Input schema for S3ReaderTool.""" file_path: str = Field( ..., description="S3 file path (e.g., 's3://bucket-name/file-name')" ) class S3ReaderTool(BaseTool): name: str ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/exceptions.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/exceptions.py
"""Custom exceptions for AWS Bedrock integration.""" class BedrockError(Exception): """Base exception for Bedrock-related errors.""" class BedrockAgentError(BedrockError): """Exception raised for errors in the Bedrock Agent operations.""" class BedrockKnowledgeBaseError(BedrockError): """Exception rai...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/__init__.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/__init__.py
from crewai_tools.aws.bedrock.agents.invoke_agent_tool import BedrockInvokeAgentTool from crewai_tools.aws.bedrock.browser import create_browser_toolkit from crewai_tools.aws.bedrock.code_interpreter import create_code_interpreter_toolkit from crewai_tools.aws.bedrock.knowledge_base.retriever_tool import ( BedrockK...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/agents/__init__.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/agents/__init__.py
from crewai_tools.aws.bedrock.agents.invoke_agent_tool import BedrockInvokeAgentTool __all__ = ["BedrockInvokeAgentTool"]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/agents/invoke_agent_tool.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/agents/invoke_agent_tool.py
from datetime import datetime, timezone import json import os import time from crewai.tools import BaseTool from dotenv import load_dotenv from pydantic import BaseModel, Field from crewai_tools.aws.bedrock.exceptions import ( BedrockAgentError, BedrockValidationError, ) # Load environment variables from .e...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/knowledge_base/retriever_tool.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/knowledge_base/retriever_tool.py
import json import os from typing import Any from crewai.tools import BaseTool from dotenv import load_dotenv from pydantic import BaseModel, Field from crewai_tools.aws.bedrock.exceptions import ( BedrockKnowledgeBaseError, BedrockValidationError, ) # Load environment variables from .env file load_dotenv()...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/knowledge_base/__init__.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/knowledge_base/__init__.py
from crewai_tools.aws.bedrock.knowledge_base.retriever_tool import ( BedrockKBRetrieverTool, ) __all__ = ["BedrockKBRetrieverTool"]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/utils.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/utils.py
from __future__ import annotations from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from playwright.async_api import Browser as AsyncBrowser, Page as AsyncPage from playwright.sync_api import Browser as SyncBrowser, Page as SyncPage async def aget_current_page(browser: AsyncBrowser | Any) -> AsyncPa...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_session_manager.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_session_manager.py
from __future__ import annotations import logging from typing import TYPE_CHECKING if TYPE_CHECKING: from bedrock_agentcore.tools.browser_client import BrowserClient from playwright.async_api import Browser as AsyncBrowser from playwright.sync_api import Browser as SyncBrowser logger = logging.getLogger...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py
"""Toolkit for navigating web with AWS browser.""" import asyncio import json import logging from typing import Any from urllib.parse import urlparse from crewai.tools import BaseTool from pydantic import BaseModel, Field from crewai_tools.aws.bedrock.browser.browser_session_manager import ( BrowserSessionManage...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/__init__.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/__init__.py
from crewai_tools.aws.bedrock.browser.browser_toolkit import ( BrowserToolkit, create_browser_toolkit, ) __all__ = ["BrowserToolkit", "create_browser_toolkit"]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/__init__.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/__init__.py
from crewai_tools.aws.bedrock.code_interpreter.code_interpreter_toolkit import ( CodeInterpreterToolkit, create_code_interpreter_toolkit, ) __all__ = ["CodeInterpreterToolkit", "create_code_interpreter_toolkit"]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py
"""Toolkit for working with AWS Bedrock Code Interpreter.""" from __future__ import annotations import json import logging from typing import TYPE_CHECKING, Any from crewai.tools import BaseTool from pydantic import BaseModel, Field if TYPE_CHECKING: from bedrock_agentcore.tools.code_interpreter_client import ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/source_content.py
lib/crewai-tools/src/crewai_tools/rag/source_content.py
from __future__ import annotations from functools import cached_property import os from pathlib import Path from typing import TYPE_CHECKING from urllib.parse import urlparse from crewai_tools.rag.misc import compute_sha256 if TYPE_CHECKING: from crewai_tools.rag.data_types import DataType class SourceContent...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/data_types.py
lib/crewai-tools/src/crewai_tools/rag/data_types.py
from enum import Enum from importlib import import_module import os from pathlib import Path from typing import cast from urllib.parse import urlparse from crewai_tools.rag.base_loader import BaseLoader from crewai_tools.rag.chunkers.base_chunker import BaseChunker class DataType(str, Enum): FILE = "file" PD...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/base_loader.py
lib/crewai-tools/src/crewai_tools/rag/base_loader.py
from abc import ABC, abstractmethod from typing import Any from pydantic import BaseModel, Field from crewai_tools.rag.misc import compute_sha256 from crewai_tools.rag.source_content import SourceContent class LoaderResult(BaseModel): content: str = Field(description="The text content of the source") source...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/core.py
lib/crewai-tools/src/crewai_tools/rag/core.py
import logging from pathlib import Path from typing import Any from uuid import uuid4 import chromadb from pydantic import BaseModel, Field, PrivateAttr from crewai_tools.rag.base_loader import BaseLoader from crewai_tools.rag.chunkers.base_chunker import BaseChunker from crewai_tools.rag.data_types import DataType f...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/misc.py
lib/crewai-tools/src/crewai_tools/rag/misc.py
import hashlib from typing import Any def compute_sha256(content: str) -> str: """Compute the SHA-256 hash of the given content. Args: content: The content to hash. Returns: The SHA-256 hash of the content as a hexadecimal string. """ return hashlib.sha256(content.encode()).hexdigest...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/embedding_service.py
lib/crewai-tools/src/crewai_tools/rag/embedding_service.py
""" Enhanced embedding service that leverages CrewAI's existing embedding providers. This replaces the litellm-based EmbeddingService with a more flexible architecture. """ from __future__ import annotations import logging import os from typing import Any from pydantic import BaseModel, Field logger = logging.getL...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/__init__.py
lib/crewai-tools/src/crewai_tools/rag/__init__.py
from crewai_tools.rag.core import RAG, EmbeddingService from crewai_tools.rag.data_types import DataType __all__ = [ "RAG", "DataType", "EmbeddingService", ]
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/chunkers/structured_chunker.py
lib/crewai-tools/src/crewai_tools/rag/chunkers/structured_chunker.py
from crewai_tools.rag.chunkers.base_chunker import BaseChunker class CsvChunker(BaseChunker): def __init__( self, chunk_size: int = 1200, chunk_overlap: int = 100, separators: list[str] | None = None, keep_separator: bool = True, ): if separators is None: ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/chunkers/base_chunker.py
lib/crewai-tools/src/crewai_tools/rag/chunkers/base_chunker.py
import re class RecursiveCharacterTextSplitter: """A text splitter that recursively splits text based on a hierarchy of separators.""" def __init__( self, chunk_size: int = 4000, chunk_overlap: int = 200, separators: list[str] | None = None, keep_separator: bool = True...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/chunkers/__init__.py
lib/crewai-tools/src/crewai_tools/rag/chunkers/__init__.py
from crewai_tools.rag.chunkers.base_chunker import BaseChunker from crewai_tools.rag.chunkers.default_chunker import DefaultChunker from crewai_tools.rag.chunkers.structured_chunker import ( CsvChunker, JsonChunker, XmlChunker, ) from crewai_tools.rag.chunkers.text_chunker import DocxChunker, MdxChunker, Te...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/chunkers/text_chunker.py
lib/crewai-tools/src/crewai_tools/rag/chunkers/text_chunker.py
from crewai_tools.rag.chunkers.base_chunker import BaseChunker class TextChunker(BaseChunker): def __init__( self, chunk_size: int = 1500, chunk_overlap: int = 150, separators: list[str] | None = None, keep_separator: bool = True, ): if separators is None: ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/chunkers/default_chunker.py
lib/crewai-tools/src/crewai_tools/rag/chunkers/default_chunker.py
from crewai_tools.rag.chunkers.base_chunker import BaseChunker class DefaultChunker(BaseChunker): def __init__( self, chunk_size: int = 2000, chunk_overlap: int = 20, separators: list[str] | None = None, keep_separator: bool = True, ): super().__init__(chunk_siz...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/chunkers/web_chunker.py
lib/crewai-tools/src/crewai_tools/rag/chunkers/web_chunker.py
from crewai_tools.rag.chunkers.base_chunker import BaseChunker class WebsiteChunker(BaseChunker): def __init__( self, chunk_size: int = 2500, chunk_overlap: int = 250, separators: list[str] | None = None, keep_separator: bool = True, ): if separators is None: ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/csv_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/csv_loader.py
import csv from io import StringIO from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.loaders.utils import load_from_url from crewai_tools.rag.source_content import SourceContent class CSVLoader(BaseLoader): def load(self, source_content: SourceContent, **kwargs) -> LoaderRes...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/json_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/json_loader.py
import json from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.loaders.utils import load_from_url from crewai_tools.rag.source_content import SourceContent class JSONLoader(BaseLoader): def load(self, source_content: SourceContent, **kwargs) -> LoaderResult: # type: ignore[o...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/mdx_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/mdx_loader.py
import re from typing import Final from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.loaders.utils import load_from_url from crewai_tools.rag.source_content import SourceContent _IMPORT_PATTERN: Final[re.Pattern[str]] = re.compile(r"^import\s+.*?\n", re.MULTILINE) _EXPORT_PATTER...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/docs_site_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/docs_site_loader.py
"""Documentation site loader.""" from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup import requests from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class DocsSiteLoader(BaseLoader): """Loader for documentation web...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/xml_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/xml_loader.py
from typing import Any from xml.etree.ElementTree import ParseError, fromstring, parse from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.loaders.utils import load_from_url from crewai_tools.rag.source_content import SourceContent class XMLLoader(BaseLoader): def load(self, s...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/webpage_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/webpage_loader.py
import re from typing import Final from bs4 import BeautifulSoup import requests from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent _SPACES_PATTERN: Final[re.Pattern[str]] = re.compile(r"[ \t]+") _NEWLINE_PATTERN: Final[re.Pattern[str]] = re.c...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/utils.py
lib/crewai-tools/src/crewai_tools/rag/loaders/utils.py
"""Utility functions for RAG loaders.""" def load_from_url( url: str, kwargs: dict, accept_header: str = "*/*", loader_name: str = "Loader" ) -> str: """Load content from a URL. Args: url: The URL to fetch content from kwargs: Additional keyword arguments (can include 'headers' override) ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/youtube_channel_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/youtube_channel_loader.py
"""YouTube channel loader for extracting content from YouTube channels.""" import re from typing import Any from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class YoutubeChannelLoader(BaseLoader): """Loader for YouTube channels.""" ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/github_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/github_loader.py
"""GitHub repository content loader.""" from github import Github, GithubException from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class GithubLoader(BaseLoader): """Loader for GitHub repository content.""" def load(self, source: S...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/__init__.py
lib/crewai-tools/src/crewai_tools/rag/loaders/__init__.py
from crewai_tools.rag.loaders.csv_loader import CSVLoader from crewai_tools.rag.loaders.directory_loader import DirectoryLoader from crewai_tools.rag.loaders.docx_loader import DOCXLoader from crewai_tools.rag.loaders.json_loader import JSONLoader from crewai_tools.rag.loaders.mdx_loader import MDXLoader from crewai_to...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/pdf_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/pdf_loader.py
"""PDF loader for extracting text from PDF files.""" import os from pathlib import Path from typing import Any, cast from urllib.parse import urlparse import urllib.request from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class PDFLoader(Bas...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/text_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/text_loader.py
from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class TextFileLoader(BaseLoader): def load(self, source_content: SourceContent, **kwargs) -> LoaderResult: # type: ignore[override] source_ref = source_content.source_ref if...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/directory_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/directory_loader.py
import os from pathlib import Path from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class DirectoryLoader(BaseLoader): def load(self, source_content: SourceContent, **kwargs) -> LoaderResult: # type: ignore[override] """Load and ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/youtube_video_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/youtube_video_loader.py
"""YouTube video loader for extracting transcripts from YouTube videos.""" import re from typing import Any from urllib.parse import parse_qs, urlparse from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class YoutubeVideoLoader(BaseLoader): ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/postgres_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/postgres_loader.py
"""PostgreSQL database loader.""" from urllib.parse import urlparse from psycopg2 import Error, connect from psycopg2.extras import RealDictCursor from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class PostgresLoader(BaseLoader): """Loa...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/docx_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/docx_loader.py
import os import tempfile from typing import Any import requests from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class DOCXLoader(BaseLoader): def load(self, source_content: SourceContent, **kwargs) -> LoaderResult: # type: ignore[over...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/rag/loaders/mysql_loader.py
lib/crewai-tools/src/crewai_tools/rag/loaders/mysql_loader.py
"""MySQL database loader.""" from typing import Any from urllib.parse import urlparse from pymysql import Error, connect from pymysql.cursors import DictCursor from crewai_tools.rag.base_loader import BaseLoader, LoaderResult from crewai_tools.rag.source_content import SourceContent class MySQLLoader(BaseLoader): ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/enterprise_adapter.py
lib/crewai-tools/src/crewai_tools/adapters/enterprise_adapter.py
import json import os import re from typing import Any, Literal, Optional, Union, _SpecialForm, cast, get_origin import warnings from crewai.tools import BaseTool from pydantic import Field, create_model import requests def get_enterprise_api_base_url() -> str: """Get the enterprise API base URL from environment...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/lancedb_adapter.py
lib/crewai-tools/src/crewai_tools/adapters/lancedb_adapter.py
from collections.abc import Callable from pathlib import Path from typing import Any from lancedb import ( # type: ignore[import-untyped] DBConnection as LanceDBConnection, connect as lancedb_connect, ) from lancedb.table import Table as LanceDBTable # type: ignore[import-untyped] from openai import Client a...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py
"""MCPServer for CrewAI.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any from crewai.tools import BaseTool from crewai_tools.adapters.tool_collection import ToolCollection logger = logging.getLogger(__name__) if TYPE_CHECKING: from mcp import StdioServerParameters ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/crewai_rag_adapter.py
lib/crewai-tools/src/crewai_tools/adapters/crewai_rag_adapter.py
"""Adapter for CrewAI's native RAG system.""" from __future__ import annotations import hashlib from typing import TYPE_CHECKING, Any, cast import uuid from crewai.rag.config.types import RagConfigType from crewai.rag.config.utils import get_rag_client from crewai.rag.core.base_client import BaseClient from crewai.r...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/__init__.py
lib/crewai-tools/src/crewai_tools/adapters/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py
from __future__ import annotations from collections.abc import Callable from typing import Generic, TypeVar from crewai.tools import BaseTool T = TypeVar("T", bound=BaseTool) class ToolCollection(list, Generic[T]): """A collection of tools that can be accessed by index or name. This class extends the bui...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/rag_adapter.py
lib/crewai-tools/src/crewai_tools/adapters/rag_adapter.py
from typing import Any from crewai_tools.rag.core import RAG from crewai_tools.tools.rag.rag_tool import Adapter class RAGAdapter(Adapter): def __init__( self, collection_name: str = "crewai_knowledge_base", persist_directory: str | None = None, embedding_model: str = "text-embedd...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/adapters/zapier_adapter.py
lib/crewai-tools/src/crewai_tools/adapters/zapier_adapter.py
import logging import os from typing import Final, Literal from crewai.tools import BaseTool from pydantic import Field, create_model import requests ACTIONS_URL: Final[Literal["https://actions.zapier.com/api/v2/ai-actions"]] = ( "https://actions.zapier.com/api/v2/ai-actions" ) logger = logging.getLogger(__name...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/test_generate_tool_specs.py
lib/crewai-tools/tests/test_generate_tool_specs.py
import json from unittest import mock from crewai.tools.base_tool import BaseTool, EnvVar from crewai_tools.generate_tool_specs import ToolSpecExtractor from pydantic import BaseModel, Field import pytest class MockToolSchema(BaseModel): query: str = Field(..., description="The query parameter") count: int =...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/base_tool_test.py
lib/crewai-tools/tests/base_tool_test.py
from collections.abc import Callable from crewai.tools import BaseTool, tool from crewai.tools.base_tool import to_langchain def test_creating_a_tool_using_annotation(): @tool("Name of my tool") def my_tool(question: str) -> str: """Clear description for what this tool is useful for, you agent will n...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/test_optional_dependencies.py
lib/crewai-tools/tests/test_optional_dependencies.py
from pathlib import Path import subprocess import tempfile import pytest @pytest.fixture def temp_project(): temp_dir = tempfile.TemporaryDirectory() project_dir = Path(temp_dir.name) / "test_project" project_dir.mkdir() pyproject_content = """ [project] name = "test-project" version = "...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/__init__.py
lib/crewai-tools/tests/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/file_read_tool_test.py
lib/crewai-tools/tests/file_read_tool_test.py
import os from unittest.mock import mock_open, patch from crewai_tools import FileReadTool def test_file_read_tool_constructor(): """Test FileReadTool initialization with file_path.""" # Create a temporary test file test_file = "/tmp/test_file.txt" test_content = "Hello, World!" with open(test_fi...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/test_pdf_search_tool_config.py
lib/crewai-tools/tests/tools/test_pdf_search_tool_config.py
from unittest.mock import MagicMock, Mock, patch from crewai_tools.adapters.crewai_rag_adapter import CrewAIRagAdapter from crewai_tools.tools.pdf_search_tool.pdf_search_tool import PDFSearchTool @patch("crewai_tools.adapters.crewai_rag_adapter.create_client") def test_pdf_search_tool_with_azure_config_without_env_v...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/parallel_search_tool_test.py
lib/crewai-tools/tests/tools/parallel_search_tool_test.py
import json from unittest.mock import patch from urllib.parse import urlparse from crewai_tools.tools.parallel_tools.parallel_search_tool import ( ParallelSearchTool, ) def test_requires_env_var(monkeypatch): monkeypatch.delenv("PARALLEL_API_KEY", raising=False) tool = ParallelSearchTool() result = t...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/test_txt_search_tool_config.py
lib/crewai-tools/tests/tools/test_txt_search_tool_config.py
from unittest.mock import MagicMock, Mock, patch from crewai_tools.adapters.crewai_rag_adapter import CrewAIRagAdapter from crewai_tools.tools.txt_search_tool.txt_search_tool import TXTSearchTool @patch("crewai_tools.adapters.crewai_rag_adapter.create_client") def test_txt_search_tool_with_azure_config_without_env_v...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py
import os from unittest.mock import MagicMock, patch from crewai_tools.tools.generate_crewai_automation_tool.generate_crewai_automation_tool import ( GenerateCrewaiAutomationTool, GenerateCrewaiAutomationToolSchema, ) import pytest import requests @pytest.fixture(autouse=True) def mock_env(): with patch....
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/firecrawl_scrape_website_tool_test.py
lib/crewai-tools/tests/tools/firecrawl_scrape_website_tool_test.py
import pytest from crewai_tools.tools.firecrawl_scrape_website_tool.firecrawl_scrape_website_tool import ( FirecrawlScrapeWebsiteTool, ) @pytest.mark.vcr() def test_firecrawl_scrape_tool_integration(): tool = FirecrawlScrapeWebsiteTool() result = tool.run(url="https://firecrawl.dev") assert result is...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/test_import_without_warnings.py
lib/crewai-tools/tests/tools/test_import_without_warnings.py
from pydantic.warnings import PydanticDeprecatedSince20 import pytest @pytest.mark.filterwarnings("error", category=PydanticDeprecatedSince20) def test_import_tools_without_pydantic_deprecation_warnings(): # This test is to ensure that the import of crewai_tools does not raise any Pydantic deprecation warnings. ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/snowflake_search_tool_test.py
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py
import asyncio from unittest.mock import MagicMock, patch from crewai_tools import SnowflakeConfig, SnowflakeSearchTool import pytest # Unit Test Fixtures @pytest.fixture def mock_snowflake_connection(): mock_conn = MagicMock() mock_cursor = MagicMock() mock_cursor.description = [("col1",), ("col2",)] ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/tool_collection_test.py
lib/crewai-tools/tests/tools/tool_collection_test.py
import unittest from unittest.mock import MagicMock from crewai.tools import BaseTool from crewai_tools.adapters.tool_collection import ToolCollection class TestToolCollection(unittest.TestCase): def setUp(self): self.search_tool = self._create_mock_tool( "SearcH", "Search Tool" ) # ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/test_file_writer_tool.py
lib/crewai-tools/tests/tools/test_file_writer_tool.py
import os import shutil import tempfile from crewai_tools.tools.file_writer_tool.file_writer_tool import FileWriterTool import pytest @pytest.fixture def tool(): return FileWriterTool() @pytest.fixture def temp_env(): temp_dir = tempfile.mkdtemp() test_file = "test.txt" test_content = "Hello, World...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/firecrawl_crawl_website_tool_test.py
lib/crewai-tools/tests/tools/firecrawl_crawl_website_tool_test.py
import pytest from crewai_tools.tools.firecrawl_crawl_website_tool.firecrawl_crawl_website_tool import ( FirecrawlCrawlWebsiteTool, ) @pytest.mark.vcr() def test_firecrawl_crawl_tool_integration(): tool = FirecrawlCrawlWebsiteTool(config={ "limit": 2, "max_discovery_depth": 1, "scrape_...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/test_search_tools.py
lib/crewai-tools/tests/tools/test_search_tools.py
import os from pathlib import Path import tempfile from unittest.mock import MagicMock from crewai_tools.rag.data_types import DataType from crewai_tools.tools import ( CSVSearchTool, CodeDocsSearchTool, DOCXSearchTool, DirectorySearchTool, GithubSearchTool, JSONSearchTool, MDXSearchTool, ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/tests/tools/singlestore_search_tool_test.py
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py
from collections.abc import Generator import os from crewai_tools import SingleStoreSearchTool from crewai_tools.tools.singlestore_search_tool import SingleStoreSearchToolSchema import pytest from singlestoredb import connect from singlestoredb.server import docker @pytest.fixture(scope="session") def docker_server_...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false