struct

AI::OpenAI::Tools::WebSearch

Inherits Struct < Value < Object

Web Search tool.

Allows models to access up-to-date information from the internet and provide answers with sourced citations.

Constants

ID = "openai.web_search"
NAME = "web_search"

Constructors

new(external_web_access : Bool | Nil = nil, filters : WebSearchFilters | Nil = nil, search_context_size : String | Nil = nil, user_location : UserLocation | Nil = nil)
Source

Instance methods

args
Source
external_web_access

Whether to use external web access for fetching live content.

Source
filters

Filters for the search.

Source
name
Source
search_context_size

Search context size: low, medium, high.

Source
type
Source
user_location

User location information for geographically relevant results.

Source