Skip to content

feat: support image results in web search tools - #4898

Merged
seratch merged 1 commit into
mainfrom
feat/web-search-image-results
Sep 7, 2026
Merged

seratch merged 1 commit into
mainfrom
feat/web-search-image-results

Conversation

@seratch

@seratch seratch commented Sep 7, 2026

Copy link
Copy Markdown
Member

This pull request supersedes #4704 and adds image-search configuration to WebSearchTool through the existing Responses API conversion path. Callers can request image-only or mixed text/image results with search_content_types, customize results with image_settings, and receive raw results through the automatically requested web_search_call.results include.

The change exports WebSearchToolImageSettings from agents, preserves existing positional arguments and default request payloads, and covers public imports and streaming/non-streaming HTTP request serialization. Documentation for the new fields remains a separately timed docs-only change coordinated with the SDK release.

Allow WebSearchTool to request image-only or mixed text/image results and
configure image settings through the existing Responses API tool payload.
Request raw image results automatically and export the public settings type.
Preserve existing constructor order and default behavior, with converter,
public import, and streaming/non-streaming HTTP request regression coverage.

Supersedes #4704.

Co-authored-by: Warren <[email protected]>
@seratch seratch added this to the 0.22.x milestone Sep 7, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-07T14:55:17.638499Z fe5c22b PR opened
🔒 Security Review ✅ Completed 2026-09-07T14:56:49.690082Z fe5c22b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@seratch
seratch merged commit 67169f6 into main Sep 7, 2026
18 checks passed
@seratch
seratch deleted the feat/web-search-image-results branch September 7, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant