Skip to content

docs: add native web search SDK examples - #542

Merged
christineschen merged 1 commit into
mainfrom
dev-478-openrouter-web-search-server-tool
Jul 28, 2026
Merged

docs: add native web search SDK examples#542
christineschen merged 1 commit into
mainfrom
dev-478-openrouter-web-search-server-tool

Conversation

@christineschen

Copy link
Copy Markdown
Collaborator

Summary

  • Document native OpenRouter web search support in the README and PyPI README.
  • Show Chat Completions usage with components.OpenRouterWebSearchServerTool.
  • Show Responses API usage with components.WebSearchServerToolOpenRouter.
  • Add serialization tests for chat web-search tools, responses web-search tools, and the components.WebSearchPlugin plugin path.

Context

Linear: DEV-478, feature request to add/support OpenRouter web search server tool in the Python SDK.

The generated SDK already contains the native web-search component types; this PR makes the support discoverable and guards the expected request serialization.

Testing

  • uv run python direct invocation of tests/test_web_search_tools.py test functions
  • uv run --group dev pyright src
  • uv run --group dev mypy src
  • uv run --group dev pylint src --rcfile pylintrc
  • uv build
  • git diff --check

Note: pytest is not currently installed in the repo dependency groups, so the new pytest-style tests were smoke-run by importing and invoking the test functions directly.

@christineschen
christineschen merged commit 1e80cfd into main Jul 28, 2026
1 check passed
@christineschen
christineschen deleted the dev-478-openrouter-web-search-server-tool branch July 28, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant