Skip to content

Commit 5f6da08

Browse files
committed
fix review comment
1 parent 0987153 commit 5f6da08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/agents/models/openai_responses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,10 @@ def _convert_tool(cls, tool: Tool) -> tuple[ToolParam, ResponseIncludable | None
477477
"filters": tool.filters.model_dump() if tool.filters is not None else None,
478478
"user_location": tool.user_location,
479479
"search_context_size": tool.search_context_size,
480-
"external_web_access": tool.external_web_access,
481480
},
482481
)
482+
if tool.external_web_access is not None:
483+
converted_tool["external_web_access"] = tool.external_web_access
483484
includes = None
484485
elif isinstance(tool, FileSearchTool):
485486
converted_tool = {

0 commit comments

Comments
 (0)