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
Metadata
Release files for web-agent-sdk 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| web_agent_sdk-0.3.1.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| web_agent_sdk-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / web_agent_sdk-0.3.1.tar.gz
| Download URL | web_agent_sdk-0.3.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74ab34d357884744bd1643c0be35b29603b4b5342c5b8eccf04fda529d16a8dc
|
|
BLAKE2b-256 checksum How to use checksums |
8c32baa4a9ee4102d789119b9f31480e3d1a64262b69db860d4ae37cc873dea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / web_agent_sdk-0.3.1-py3-none-any.whl
| Download URL | web_agent_sdk-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
384fed0c128cfec184c2cdcb5e83f0cc2f1c56cf6aff058bfa7392b96b86a3ae
|
|
BLAKE2b-256 checksum How to use checksums |
28a3177818f639e4333bdf57ccbba2f8f58fe170273f5e0648ede2a13872a388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|