struct AI::Google::Tools::GoogleSearch

Overview

Google Search grounding tool.

Gives Google direct access to real-time web content. Must have name "google_search".

Defined in:

ai/google/google_tools.cr

Constant Summary

ID = "google.google_search"
NAME = "google_search"

Constructors

Instance Method Summary

Constructor Detail

def self.new(mode : String | Nil = nil, dynamic_threshold : Float64 | Nil = nil) #

[View source]

Instance Method Detail

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

[View source]
def dynamic_threshold : Float64 | Nil #

Threshold for dynamic retrieval (if not set, a system default is used).


[View source]
def id : String #

[View source]
def mode : String | Nil #

Mode of the predictor to be used in dynamic retrieval.

  • "MODE_DYNAMIC": Run retrieval only when system decides it is necessary
  • "MODE_UNSPECIFIED": Always trigger retrieval

[View source]
def name : String #

[View source]
def type : String #

[View source]