Skip to main content

CrewAI tool for Federal Acquisition Regulations (FAR) search - multi-agent compliance

Project description

FAR Search CrewAI Integration

PyPI version Python 3.10+ License: MIT

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

far_search_crewai-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

far_search_crewai-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file far_search_crewai-1.0.0.tar.gz.

File metadata

  • Download URL: far_search_crewai-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for far_search_crewai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 14382284d91380592c87f591b3f9fa50d3ad8dabb6ca94a1a1e79f2dc97a9449
MD5 8e08c278d5672097b02b67ad72fdd1dc
BLAKE2b-256 ac40b7b7e9d099e0a7754042c3733eba4844c509704ee23396da089d7b699c0d

See more details on using hashes here.

File details

Details for the file far_search_crewai-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for far_search_crewai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94775855532228652b39f16ffc09f3d3c39dad9f764ba469a49f588d79963427
MD5 a66d8ec751ffb56e3c6a2b53fde8a683
BLAKE2b-256 9c24575c7b681d46aea4cc4dad906c453087acf4be2535a81599d8afe5b88d32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page