Documentation
¶
Index ¶
- type FnPrototype
- type Input
- type OrganicResults
- type Output
- type RichSnippet
- type Tool
- func (t *Tool) Description() string
- func (t *Tool) Fn() any
- func (t *Tool) Name() string
- func (t *Tool) WithAPIKey(apiKey string) *Tool
- func (t *Tool) WithCountryCode(countryCode string) *Tool
- func (t *Tool) WithGoogleDomain(googleDomain string) *Tool
- func (t *Tool) WithLanguageCode(languageCode string) *Tool
- type Top
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FnPrototype ¶
type Input ¶
type Input struct {
Query string `json:"query" jsonschema:"description=the query to search for"`
}
type OrganicResults ¶
type OrganicResults struct {
Position int `json:"position"`
Title string `json:"title"`
Link string `json:"link"`
RedirectLink string `json:"redirect_link"`
DisplayedLink string `json:"displayed_link"`
Thumbnail string `json:"thumbnail,omitempty"`
Favicon string `json:"favicon"`
Snippet string `json:"snippet"`
Source string `json:"source"`
RichSnippet RichSnippet `json:"rich_snippet,omitempty"`
SnippetHighlightedWords []string `json:"snippet_highlighted_words,omitempty"`
}
type Output ¶
type Output struct {
Error string `json:"error,omitempty"`
Results []result `json:"results,omitempty"`
}
type RichSnippet ¶
type RichSnippet struct {
Top Top `json:"top"`
}
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) Description ¶
func (*Tool) WithAPIKey ¶
func (*Tool) WithCountryCode ¶
func (*Tool) WithGoogleDomain ¶
func (*Tool) WithLanguageCode ¶
Click to show internal directories.
Click to hide internal directories.