Official Python SDK for the SearchMind AI-native search API platform
Project description
SearchMind Python SDK
Official Python client and agent tools for the SearchMind API Platform — a developer-first Tavily alternative providing clean, structured, LLM-optimized web search results.
Installation
Install in editable mode for local development:
pip install -e .
To include LangChain/LangGraph dependencies:
pip install -e .[langchain]
Quick Start
Basic Search
from searchmind import SearchMindClient
# Initialize client (defaults to http://localhost:8000/v1)
client = SearchMindClient(api_key="sm_live_...")
# Perform basic search
response = client.search(
query="FastAPI async best practices",
num_results=3,
search_depth="basic"
)
print("Synthesized Answer:", response.answer)
for result in response.results:
print(f"- {result.title} ({result.url})")
print(f" Score: {result.score:.2f}")
Deep Research
# Deep research expands queries and crawls multiple sources in parallel
research_info = client.research("Generative AI agents frameworks comparison 2025")
print("Research Summary:", research_info.summary)
Async Usage
import asyncio
from searchmind import SearchMindClient
async def main():
client = SearchMindClient(api_key="sm_live_...")
response = await client.async_search("What is new in Python 3.13?")
print(response.answer)
await client.close()
asyncio.run(main())
Agent Integrations
LangGraph react agent
import os
from langgraph.prebuilt import create_react_agent
from langchain_anthropic import ChatAnthropic
from searchmind import SearchMindClient
from searchmind.langgraph_tool import create_searchmind_tools
client = SearchMindClient(api_key=os.environ["SEARCHMIND_API_KEY"])
tools = create_searchmind_tools(client)
llm = ChatAnthropic(model="claude-3-5-sonnet-20241022")
agent = create_react_agent(llm, tools)
response = agent.invoke({"messages": [("human", "Find recent LangGraph release notes.")]})
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
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 searchmind_api-1.0.0.tar.gz.
File metadata
- Download URL: searchmind_api-1.0.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94764809713bb19b82877aa7199c080c886a4a86e233a03ea35b7063c095a105
|
|
| MD5 |
cdaae3bc5c23fccd033f43419ed2546d
|
|
| BLAKE2b-256 |
01ca9b0d6536ab858a3d53c60479cb9452847ed0f892923b8ed0db814cb6c725
|
File details
Details for the file searchmind_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: searchmind_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deb6ae3a73f1806e8863b6f2e67c47d3163ea050dc6451f150819dfdbd6c0b08
|
|
| MD5 |
41a7133dffe924590a8590f5bd4b84bd
|
|
| BLAKE2b-256 |
c7c3a10381c2a1cc530e4fd8b7fc030fe6f56a19ce111e6feb36e574b250a7a8
|