Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExaOption ¶
type ExaOption func(*ExaSearch)
func WithExaBaseURL ¶
WithExaBaseURL sets the base URL for the Exa API.
func WithExaNumResults ¶
WithExaNumResults sets the number of results to return.
type ExaSearch ¶
ExaSearch is a tool that uses the Exa API to search the web.
func NewExaSearch ¶
NewExaSearch creates a new ExaSearch tool. If apiKey is empty, it tries to read from EXA_API_KEY environment variable.
func (*ExaSearch) Description ¶
Description returns the description of the tool.
type TavilyOption ¶
type TavilyOption func(*TavilySearch)
func WithTavilyBaseURL ¶
func WithTavilyBaseURL(url string) TavilyOption
WithTavilyBaseURL sets the base URL for the Tavily API.
func WithTavilySearchDepth ¶
func WithTavilySearchDepth(depth string) TavilyOption
WithTavilySearchDepth sets the search depth for the Tavily API. Valid values are "basic" and "advanced".
type TavilySearch ¶
TavilySearch is a tool that uses the Tavily API to search the web.
func NewTavilySearch ¶
func NewTavilySearch(apiKey string, opts ...TavilyOption) (*TavilySearch, error)
NewTavilySearch creates a new TavilySearch tool. If apiKey is empty, it tries to read from TAVILY_API_KEY environment variable.
func (*TavilySearch) Description ¶
func (t *TavilySearch) Description() string
Description returns the description of the tool.