Skip to main content

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:

  1. web_search to get candidate URLs
  2. open_url to retrieve page content
  3. 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-in web_search tool
  • agentic_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 ChatOpenAI instance
  • 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

web_agent_sdk-0.3.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

web_agent_sdk-0.3.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

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

Hashes for web_agent_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 74ab34d357884744bd1643c0be35b29603b4b5342c5b8eccf04fda529d16a8dc
MD5 ef8552c26aafd59b814c04051d7bcfcb
BLAKE2b-256 8c32baa4a9ee4102d789119b9f31480e3d1a64262b69db860d4ae37cc873dea8

See more details on using hashes here.

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

Hashes for web_agent_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 384fed0c128cfec184c2cdcb5e83f0cc2f1c56cf6aff058bfa7392b96b86a3ae
MD5 981749da191fa5937bfc3cf1633d878d
BLAKE2b-256 28a3177818f639e4333bdf57ccbba2f8f58fe170273f5e0648ede2a13872a388

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page