Python SDK for BrowseAI Dev — reliable research infrastructure for AI agents
Project description
browseai
Python SDK for BrowseAI Dev — reliable research infrastructure for AI agents.
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.0.tar.gz
(6.9 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.0.tar.gz.
File metadata
- Download URL: browseai-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79a90d3317262b73798cdac9b51576fffa32881e36792861d30032814bdc275d
|
|
| MD5 |
d8d3bc68823b40f5989caf4ff356db0a
|
|
| BLAKE2b-256 |
0d9c999627e6a6b672bb10550fbc5ba5203fe5f0e55fd8cbeccd07a237c0454c
|
File details
Details for the file browseai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: browseai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9189ed19365b16d301eb5b7f35c566a5b7c74bbaa6fe421d97ea94985a5e776d
|
|
| MD5 |
777e22a9c514344a2770c02e13a45802
|
|
| BLAKE2b-256 |
e83b73697eae3750cf4a6c2bda3a8df3ab5e9d56e0f8a35e0397d528815a3275
|