Python SDK for stateless OpenAI web search runs driven by ChatOpenAI.
Project description
web-agent-sdk
Python SDK for stateless OpenAI-backed web search runs, driven by an injected langchain_openai.ChatOpenAI model.
Project links:
- PyPI:
https://pypi.org/project/web-agent-sdk/0.3.1/ - GitHub:
https://github.com/Nickbohm555/web-agent
Why This Exists
This package exists to show that web search agents can stay small and cheap.
The core design is just:
web_searchto get candidate URLsopen_urlto retrieve page content- an LLM to synthesize the answer from the returned evidence
Install
pip install web-agent-sdk
Usage
from langchain_openai import ChatOpenAI
from web_agent_sdk import WebAgentClient
llm = ChatOpenAI(
model="gpt-5-nano",
api_key="your-openai-key",
)
client = WebAgentClient(chat_model=llm)
quick = client.quick_search("Find pricing")
agentic = client.agentic_search("Investigate this company")
Behavior
quick_search(query)runs a fast stateless OpenAI Responses API search with the built-inweb_searchtoolagentic_search(query)runs a more thorough stateless OpenAI Responses API search with the same tool- the SDK derives the OpenAI model name and API key from the injected
ChatOpenAIinstance - the backend uses a simple two-tool web workflow rather than an all-in-one proprietary research API
Inspiration
This package was inspired in part by Onyx's article: https://onyx.app/blog/building-the-best-deep-research
Project details
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 web_agent_sdk-0.3.1.tar.gz.
File metadata
- Download URL: web_agent_sdk-0.3.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ab34d357884744bd1643c0be35b29603b4b5342c5b8eccf04fda529d16a8dc
|
|
| MD5 |
ef8552c26aafd59b814c04051d7bcfcb
|
|
| BLAKE2b-256 |
8c32baa4a9ee4102d789119b9f31480e3d1a64262b69db860d4ae37cc873dea8
|
File details
Details for the file web_agent_sdk-0.3.1-py3-none-any.whl.
File metadata
- Download URL: web_agent_sdk-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
384fed0c128cfec184c2cdcb5e83f0cc2f1c56cf6aff058bfa7392b96b86a3ae
|
|
| MD5 |
981749da191fa5937bfc3cf1633d878d
|
|
| BLAKE2b-256 |
28a3177818f639e4333bdf57ccbba2f8f58fe170273f5e0648ede2a13872a388
|