struct AI::OpenAI::Tools::UserLocation

Overview

User location for web search.

Defined in:

ai/openai/tool/openai_tools.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(country : String | Nil = nil, city : String | Nil = nil, region : String | Nil = nil, timezone : String | Nil = nil) #

[View source]

Instance Method Detail

def city : String | Nil #

[View source]
def country : String | Nil #

[View source]
def region : String | Nil #

[View source]
def timezone : String | Nil #

[View source]
def to_h : Hash(String, JSON::Any) #

[View source]
def type : String #

[View source]