Commit 5a6931da
Changed files (2)
src
openai
types
responses
src/openai/types/responses/tool.py
@@ -3,6 +3,7 @@
from typing import Dict, List, Union, Optional
from typing_extensions import Literal, Annotated, TypeAlias
+from . import web_search_tool
from ..._utils import PropertyInfo
from ..._models import BaseModel
from .custom_tool import CustomTool
@@ -30,6 +31,8 @@ __all__ = [
"LocalShell",
]
+WebSearchToolFilters = web_search_tool.Filters
+WebSearchToolUserLocation = web_search_tool.UserLocation
class McpAllowedToolsMcpToolFilter(BaseModel):
read_only: Optional[bool] = None
src/openai/types/responses/tool_param.py
@@ -5,6 +5,7 @@ from __future__ import annotations
from typing import Dict, Union, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict
+from . import web_search_tool_param
from ..chat import ChatCompletionFunctionToolParam
from ..._types import SequenceNotStr
from .custom_tool_param import CustomToolParam
@@ -31,6 +32,9 @@ __all__ = [
"LocalShell",
]
+WebSearchTool = web_search_tool_param.WebSearchToolParam
+WebSearchToolFilters = web_search_tool_param.Filters
+WebSearchToolUserLocation = web_search_tool_param.UserLocation
class McpAllowedToolsMcpToolFilter(TypedDict, total=False):
read_only: bool