Skip to content

Commit 580838c

Browse files
committed
fix
1 parent defdd82 commit 580838c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tools/web_search_filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from datetime import datetime
33

4-
from openai.types.responses.tool import WebSearchToolFilters
4+
from openai.types.responses.web_search_tool import Filters
55
from openai.types.shared.reasoning import Reasoning
66

77
from agents import Agent, ModelSettings, Runner, WebSearchTool, trace
@@ -18,7 +18,7 @@ async def main():
1818
tools=[
1919
WebSearchTool(
2020
# https://platform.openai.com/docs/guides/tools-web-search?api-mode=responses#domain-filtering
21-
filters=WebSearchToolFilters(
21+
filters=Filters(
2222
allowed_domains=[
2323
"openai.com",
2424
"developer.openai.com",

0 commit comments

Comments
 (0)