Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFetchTool ¶ added in v0.2.0
NewFetchTool is web_fetch: one public page as readable text.
func NewRequestTool ¶ added in v0.2.4
NewRequestTool sends an authorized API request and returns its HTTP response.
func NewSearchTool ¶ added in v0.2.0
func NewSearchTool(config func() (SearchConfig, error)) tools.Executor
NewSearchTool is web_search over the provider config reads at each call; nil config searches DuckDuckGo.
Types ¶
type SearchConfig ¶ added in v0.2.0
SearchConfig holds the active provider credentials for web search.
type WebFetchParams ¶
type WebFetchParams struct {
URL string `json:"url"`
}
type WebSearchParams ¶
type WebSearchResponseMetadata ¶
type WebSearchResponseMetadata struct {
Query string `json:"query"`
Provider string `json:"provider"`
Results []WebSearchResult `json:"results"`
}