FAR Search CrewAI Integration
CrewAI tool for searching Federal Acquisition Regulations (FAR).
Enable your CrewAI agents to search government contracting regulations with verified citations from acquisition.gov.
Installation
pip install far-search-crewai
# With CrewAI dependencies
pip install far-search-crewai[crewai]
Quick Start
from crewai import Agent, Task, Crew
from far_search_crewai import FARSearchTool
# Auto-registers on first use - no API key needed!
far_tool = FARSearchTool(crew_id="my-proposal-crew")
compliance_agent = Agent(
role="Compliance Specialist",
goal="Verify FAR compliance for government proposals",
tools=[far_tool],
verbose=True
)
research_task = Task(
description="Find the cybersecurity requirements for DoD contracts",
agent=compliance_agent,
expected_output="List of relevant FAR clauses with citations"
)
crew = Crew(
agents=[compliance_agent],
tasks=[research_task]
)
result = crew.kickoff()
print(result)
Setup Options
Option 1: Auto-Registration (Recommended)
Just add the tool - auto-registers on first search:
from far_search_crewai import FARSearchTool
tool = FARSearchTool()
# First search auto-registers and displays API key
Option 2: With API Key
# Get an API key
curl -X POST https://far-rag-api-production.up.railway.app/v1/register \
-H "Content-Type: application/json" \
-d '{"agent_id": "my-crew"}'
# Set environment variable
export FAR_API_KEY=far_live_...
from far_search_crewai import FARSearchTool
tool = FARSearchTool() # Picks up FAR_API_KEY from env
# or
tool = FARSearchTool(api_key="far_live_...")
Configuration
from far_search_crewai import FARSearchTool
tool = FARSearchTool(
api_key="far_live_...", # Optional - auto-registers if not provided
crew_id="proposal-crew-v1", # For tracking in dashboard
agent_role="compliance", # Agent role identifier
)
Use Cases
Government Proposal Crew
from crewai import Agent, Task, Crew
from far_search_crewai import FARSearchTool
far_tool = FARSearchTool(crew_id="proposal-crew")
# Research agent finds regulations
researcher = Agent(
role="Regulatory Researcher",
goal="Find all relevant FAR clauses",
tools=[far_tool],
)
# Compliance agent verifies requirements
compliance = Agent(
role="Compliance Specialist",
goal="Verify proposal meets FAR requirements",
tools=[far_tool],
)
# Writer agent drafts compliance sections
writer = Agent(
role="Proposal Writer",
goal="Draft compliance sections with accurate citations",
tools=[far_tool],
)
crew = Crew(
agents=[researcher, compliance, writer],
tasks=[...]
)
Compliance Verification
from far_search_crewai import create_far_search_tool
tool = create_far_search_tool(
crew_id="audit-crew",
agent_role="auditor"
)
# Directly use the tool
result = tool.search("small business subcontracting requirements")
print(result)
Features
- Semantic Search: Natural language queries over FAR clauses
- Verified Citations: All clauses sourced from acquisition.gov
- Auto-Registration: No signup needed for free tier
- Usage Tracking: Per-crew and per-agent metrics
- Usage Warnings: Alerts at 50%, 80%, 100% of monthly quota
Pricing
| Plan | Price | Queries/Month |
|---|---|---|
| Free | $0 | 500 |
| Pro | $29/mo | 5,000 |
| Ultra | $199/mo | 150,000 |
Auto-registers on first use. Upgrade at RapidAPI.
Related Packages
| Package | Use Case |
|---|---|
| far-search | Lightweight core SDK |
| far-search-tool | LangChain tool |
| far-search-autogpt | AutoGPT plugin |
| far-search-crewai (this) | CrewAI multi-agent tool |
| far-oracle | MCP Server for Claude Desktop |
License
MIT License - see LICENSE for details.
Metadata
Release files for far-search-crewai 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| far_search_crewai-1.0.0.tar.gz | 7.5 kB | Without provenance | Details for far_search_crewai-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| far_search_crewai-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for far_search_crewai-1.0.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / far_search_crewai-1.0.0.tar.gz
| Download URL | far_search_crewai-1.0.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14382284d91380592c87f591b3f9fa50d3ad8dabb6ca94a1a1e79f2dc97a9449
|
|
BLAKE2b-256 checksum How to use checksums |
ac40b7b7e9d099e0a7754042c3733eba4844c509704ee23396da089d7b699c0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / far_search_crewai-1.0.0-py3-none-any.whl
| Download URL | far_search_crewai-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94775855532228652b39f16ffc09f3d3c39dad9f764ba469a49f588d79963427
|
|
BLAKE2b-256 checksum How to use checksums |
9c24575c7b681d46aea4cc4dad906c453087acf4be2535a81599d8afe5b88d32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for far-search-crewai 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.