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 detectionLastSearchSearchTool— Web search returning ranked resultsLastSearchExtractTool— Extract structured claims from a URLLastSearchCompareTool— 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
- Website · GitHub · Discord
- Python SDK · LangChain · MCP Server
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0f7b4a71500225245d32c9a895e1111b7ae2f3818b49b9d3b0c40cdc7fe0e56
|
|
| MD5 |
36337b37cf052213553be0e5d6929b54
|
|
| BLAKE2b-256 |
2a7b2ebc050b56add736b4c2970ffd720f1e02002ebb6136d5dc7e3d4bf12425
|
File details
Details for the file crewai_lastsearch-1.0.0-py3-none-any.whl.
File metadata
- Download URL: crewai_lastsearch-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78fd193d2cee0495aaf498b22c2ccb70160168fdb2176608c82a6528b68ce15c
|
|
| MD5 |
2e5f2cf47d128a8bfee948111a352153
|
|
| BLAKE2b-256 |
b0f4241aa535b1e9dbf3ff983ea0ff8c6d79acd687de44ce1a12c62339f2d61a
|