Skip to content

fix(responses): type external_web_access on web_search tools#1779

Open
theamodhshetty wants to merge 1 commit intoopenai:masterfrom
theamodhshetty:codex/add-external-web-access-response-tool-types
Open

fix(responses): type external_web_access on web_search tools#1779
theamodhshetty wants to merge 1 commit intoopenai:masterfrom
theamodhshetty:codex/add-external-web-access-response-tool-types

Conversation

@theamodhshetty
Copy link

Summary

  • add external_web_access?: boolean to the WebSearchTool response request type
  • add a compile-time regression covering tools: [{ type: "web_search", external_web_access: false }]

Why

The Responses API accepts external_web_access on web_search tools at runtime, but the Node SDK type currently rejects it. This patch aligns the request type with the runtime behavior the issue reports.

Testing

  • ./node_modules/.bin/jest tests/responses.test.ts --runInBand
  • ./node_modules/.bin/eslint src/resources/responses/responses.ts tests/responses.test.ts
  • ./scripts/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant