Metadata-Version: 2.5
Name: crewai-lastsearch
Version: 1.0.0
Summary: CrewAI integration for LastSearch — research infrastructure with Grounded Intelligence for AI agents
Project-URL: Homepage, https://lastsearch.ai
Project-URL: Documentation, https://lastsearch.ai/docs
Project-URL: Repository, https://github.com/lastsearch-hq/lastsearch
Project-URL: Discord, https://discord.gg/ubAuT4YQsT
Author: LastSearch
License-Expression: Apache-2.0
Keywords: ai-agent,autogen,citations,confidence-scoring,crewai,crewai-tools,evidence-based,fact-checking,grounded-intelligence,hallucination-prevention,langchain,lastsearch,mcp,rag,verified-search,web-search
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: crewai>=0.41.0
Requires-Dist: lastsearch>=0.1.7
Description-Content-Type: text/markdown

# crewai-lastsearch

CrewAI integration for [LastSearch](https://lastsearch.ai) — verified web search with citations and confidence scores for AI agents.

## Installation

```bash
pip install crewai-lastsearch
```

## Quick Start

```python
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

- [Website](https://lastsearch.ai) · [GitHub](https://github.com/lastsearch-hq/lastsearch) · [Discord](https://discord.gg/ubAuT4YQsT)
- [Python SDK](https://pypi.org/project/lastsearch/) · [LangChain](https://pypi.org/project/langchain-lastsearch/) · [MCP Server](https://www.npmjs.com/package/lastsearch)

## License

Apache 2.0
