Skip to main content

Type Alias: GatewayInferenceInputWebSearchTool

type GatewayInferenceInputWebSearchTool = {
type: "web_search_preview" | "web_search_preview_2025_03_11";
user_location?: | {
country?: string;
region?: string;
city?: string;
timezone?: string;
type: "approximate";
}
| null;
search_context_size?: GatewayInferenceInputWebSearchContextSize;
};

Defined in: src/models/ai-gateway-inference.ts:2590

Portkey WebSearchTool; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputWebSearchToolSchema.parse(value);`

Properties​

type​

type: "web_search_preview" | "web_search_preview_2025_03_11";

Defined in: src/models/ai-gateway-inference.ts:2591


user_location?​

optional user_location?:
| {
country?: string;
region?: string;
city?: string;
timezone?: string;
type: "approximate";
}
| null;

Defined in: src/models/ai-gateway-inference.ts:2592


search_context_size?​

optional search_context_size?: GatewayInferenceInputWebSearchContextSize;

Defined in: src/models/ai-gateway-inference.ts:2599