Skip to main content

crewai-lastsearch

CrewAI integration for LastSearch — verified web search with citations and confidence scores for AI agents.

Installation

pip install crewai-lastsearch

Quick Start

from crewai import Agent, Task, Crew
from crewai_lastsearch import LastSearchAnswerTool, LastSearchSearchTool

# Create tools
answer_tool = LastSearchAnswerTool(api_key="ls_xxx")
search_tool = LastSearchSearchTool(api_key="ls_xxx")

# Create a research agent
researcher = Agent(
    role="Research Analyst",
    goal="Provide accurate, evidence-backed research",
    backstory="You are a meticulous researcher who verifies every claim.",
    tools=[answer_tool, search_tool],
)

# Create a task
task = Task(
    description="Research the current state of quantum computing",
    expected_output="A verified summary with citations and confidence scores",
    agent=researcher,
)

# Run
crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()

Available Tools

  • LastSearchAnswerTool — Verified research with citations, confidence scores, contradiction detection
  • LastSearchSearchTool — Web search returning ranked results
  • LastSearchExtractTool — Extract structured claims from a URL
  • LastSearchCompareTool — Compare raw LLM vs verified answer

Why LastSearch?

Unlike raw search APIs, LastSearch fact-checks results. Every answer includes per-claim verification, cross-source consensus, contradiction detection, and evidence-based confidence scores. Open source (Apache 2.0).

License

Apache 2.0

Data, privacy and terms

This package sends your requests (queries, URLs and documents you ask it to verify) and your LastSearch API key to the hosted LastSearch API at lastsearch.ai. Queries and results are stored there and used, in aggregate and without identifiers, to improve verification, as described in the Privacy Policy. The package itself collects no telemetry. Use of the hosted API is subject to the Terms.

LastSearch is a free, non-commercial passion project run by an individual developer. Answers, citations and confidence scores are AI-generated research, not professional advice; verify anything important against primary sources.

Metadata

Release files for crewai-lastsearch 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-lastsearch 1.0.1
File Size Uploaded Provenance
crewai_lastsearch-1.0.1.tar.gz 8.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for crewai-lastsearch 1.0.1
File Interpreter ABI Platform
crewai_lastsearch-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / crewai_lastsearch-1.0.1.tar.gz

Download URL crewai_lastsearch-1.0.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
571897f3ffb01f4dcf4bc558741654f779f720c9ef5db6ad536ea95604e53316
BLAKE2b-256 checksum
How to use checksums
b745778c9924c606936d6d3628b955d64bff5a768bcfa41c221efb1f03dd1f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / crewai_lastsearch-1.0.1-py3-none-any.whl

Download URL crewai_lastsearch-1.0.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f959f127d27ee0ca69020af21ea90f565675eca105eacb13ac1260ca6492bb0a
BLAKE2b-256 checksum
How to use checksums
d1de02a7e57849e1c02c3fa0c118bec53d667b10c33f7dbb8bd2ec4d20cb94e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for crewai-lastsearch 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page