struct AI::OpenAI::Tools::WebSearchPreview

Overview

Web Search Preview tool (legacy).

Previous version of web search tool.

Defined in:

ai/openai/tool/openai_tools.cr

Constant Summary

ID = "openai.web_search_preview"
NAME = "web_search_preview"

Constructors

Instance Method Summary

Constructor Detail

def self.new(search_context_size : String | Nil = nil, user_location : UserLocation | Nil = nil) #

[View source]

Instance Method Detail

def args : Hash(String, JSON::Any) #

[View source]
def id : String #

[View source]
def name : String #

[View source]
def search_context_size : String | Nil #

Search context size: low, medium, high.


[View source]
def type : String #

[View source]
def user_location : UserLocation | Nil #

User location information.


[View source]