feat: add Airweave tools to crewai-tools #4013
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Airweave Search Tools
Summary
Adds two new tools for unified semantic search across 50+ connected data sources (Stripe, GitHub, Notion, Slack, etc.) via Airweave:
AirweaveSearchTool- Basic semantic searchAirweaveAdvancedSearchTool- Advanced search with source filtering, AI reranking, and score thresholdsQuick Start
Key Features
response_type="completion"Installation
Parameters
AirweaveSearchTool
querylimitresponse_typerecency_biasAirweaveAdvancedSearchTool (Additional)
source_filterscore_thresholdrecency_biasenable_rerankingsearch_methodTesting
Implementation Details
__init__()search()andsearch_advanced())Files Added
lib/crewai-tools/src/crewai_tools/tools/airweave_tool/(4 files, ~1,033 lines)lib/crewai-tools/tests/tools/airweave_tool_test.py(18 tests)Migration Note
Originally developed as PR #483 in the archived crewAI-tools repo. Migrated to main CrewAI repo with enhancements:
Checklist
Note
Introduce
AirweaveSearchToolandAirweaveAdvancedSearchToolfor unified search across connected data sources, with docs, tests, and anairweaveoptional dependency.AirweaveSearchToolfor basic search and AI completion viaresponse_type.AirweaveAdvancedSearchToolwithsource_filter,recency_bias,score_threshold, reranking, and selectable search methods.airweaveextra and dependencyairweave-sdk>=0.1.0inlib/crewai-tools/pyproject.toml.crewai_tools/__init__.pyand createtools/airweave_tool/__init__.py.tools/airweave_tool/README.mdwith setup, parameters, examples, and troubleshooting.tests/tools/airweave_tool_test.pycovering init, raw/completion modes, filtering, error handling, and async paths.Written by Cursor Bugbot for commit a3e3e4f. This will update automatically on new commits. Configure here.
Addresses #4014