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).

Links

License

Apache 2.0

Download files

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

Source Distribution

crewai_lastsearch-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

crewai_lastsearch-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crewai_lastsearch-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for crewai_lastsearch-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a0f7b4a71500225245d32c9a895e1111b7ae2f3818b49b9d3b0c40cdc7fe0e56
MD5 36337b37cf052213553be0e5d6929b54
BLAKE2b-256 2a7b2ebc050b56add736b4c2970ffd720f1e02002ebb6136d5dc7e3d4bf12425

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crewai_lastsearch-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78fd193d2cee0495aaf498b22c2ccb70160168fdb2176608c82a6528b68ce15c
MD5 2e5f2cf47d128a8bfee948111a352153
BLAKE2b-256 b0f4241aa535b1e9dbf3ff983ea0ff8c6d79acd687de44ce1a12c62339f2d61a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

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