Documentation
¶
Overview ¶
Package searxng The SearxNG Search Tool is a powerful utility within the Atomic Agents ecosystem that allows you to perform searches using SearxNG, a privacy-respecting metasearch engine. This tool enables you to fetch search results from multiple sources while maintaining user privacy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
schema.Base
// Queries list of search queries.
Queries []string `json:"queries" jsonschema:"title=queries,description=List of search queries." validate:"required"`
// Category: Category of the search queries.
Category Category `` /* 154-byte string literal not displayed */
}
Input Schema for input to a tool for searching for information, news, references, and other content using SearxNG. Returns a list of search results with a short description or content snippet and URLs for further exploration
type Option ¶
type Option func(*Config)
func WithBaseURL ¶
func WithHttpClient ¶
func WithLanguage ¶
func WithMaxResults ¶
type Output ¶
type Output struct {
schema.Base
// Query The query used to obtain this search result
Query string `json:"query,omitempty" jsonschema:"title=query,description=The query used to obtain this search result"`
// Results List of search result items
Results []SearchResultItem `json:"results,omitempty" jsonschema:"title=results,description=List of search result items"`
// Category The category of the search results
Category Category `` /* 154-byte string literal not displayed */
}
Output represents the output of the SearxNG search tool. the schema implements SystemPromptContextProvider
func NewOutput ¶
func NewOutput(query string, results []SearchResultItem, category Category) *Output
type SearchResultItem ¶
type SearchResultItem struct {
schema.Base
// URL The URL of the search result
URL string `json:"url" jsonschema:"title=url,description=The URL of the search result" validate:"required,url"`
// Title The title of the search result
Title string `json:"title" jsonschema:"title=title,description=The title of the search result" validate:"required"`
// Content The content snippet of the search result
Content string `json:"content,omitempty" jsonschema:"title=content,description=The content snippet of the search result"`
// Query The query used to obtain this search result
Query string `json:"query" jsonschema:"title=query,description=The query used to obtain this search result" validate:"required"`
// Category: Category of the search queries.
Category Category `` /* 154-byte string literal not displayed */
// Metadata search result metadata
Metadata string `json:"metadata,omitempty" jsonschema:"title=metadata,description=The metadata of the search result"`
// PublishedDate The published date of the search result
PublishedDate string `json:"publishedDate,omitempty" jsonschema:"title=published_date,description=The published date of the search result"`
// Score search result score
Score float64 `json:"score,omitempty" jsonschema:"title=score,description=The score of the search result"`
}
SearchResultItem represents a single search result item