Python SDK for BrowseAI Dev — reliable research infrastructure for AI agents
Project description
browseai
Reliable research infrastructure for AI agents. Python SDK for BrowseAI Dev — the research layer for LangChain, CrewAI, and custom agent pipelines.
Install
pip install browseai
Quick Start
from browseai import BrowseAI
client = BrowseAI(api_key="bai_xxx")
# Research with citations
result = client.ask("What is quantum computing?")
print(result.answer)
print(f"Confidence: {result.confidence:.0%}")
for source in result.sources:
print(f" - {source.title}: {source.url}")
# Web search
results = client.search("latest AI news", limit=5)
# Page extraction
page = client.open("https://example.com")
# Structured extraction from a URL
extract = client.extract("https://example.com", query="pricing info")
# Compare raw LLM vs evidence-backed
compare = client.compare("Is Python faster than Rust?")
Async
from browseai import AsyncBrowseAI
async with AsyncBrowseAI(api_key="bai_xxx") as client:
result = await client.ask("What is quantum computing?")
BYOK (Bring Your Own Keys)
client = BrowseAI(tavily_key="tvly-xxx", openrouter_key="sk-or-xxx")
LangChain
pip install browseai[langchain]
from browseai.integrations.langchain import BrowseAIAskTool
tools = [BrowseAIAskTool(api_key="bai_xxx")]
CrewAI
pip install browseai[crewai]
from browseai.integrations.crewai import BrowseAITool
researcher = Agent(tools=[BrowseAITool(api_key="bai_xxx")])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
browseai-0.1.1.tar.gz
(7.1 kB
view details)
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 browseai-0.1.1.tar.gz.
File metadata
- Download URL: browseai-0.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eeb8eb5106907041d01cad96e5b7077e078bbf0a2b10b1cf17d06ad550a2279
|
|
| MD5 |
60124dc05be8d33c46b522faade3d340
|
|
| BLAKE2b-256 |
ada0e39e5f1ba0d5c393b71808bb16ac3a9306c30633b0a1a3cb37d57266f7d5
|
File details
Details for the file browseai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: browseai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83e3b823bfbeb077d341f931334080c75716527944110ccac3de397dc2ac2438
|
|
| MD5 |
29abd47aa13a3240c42db5b6e2ba2abd
|
|
| BLAKE2b-256 |
9401dbcef370b938b1fcac98717cf749fe0dd221491016cc58f30089c5e561a6
|