Documentation ¶
Index ¶
- func Search(param *SearchParam) safe.Result[*[]SearchResult]
- func SearchImages(param *SearchParam) safe.Result[*[]SearchResult]
- func SearchWithOption(param *SearchParam, opt *ClientOption) safe.Result[*[]SearchResult]
- type ClientOption
- type ClientQuery
- type CoinCap
- type DocResult
- type Feedback
- type GetCryptoRate
- type Result
- type SearXResult
- type SearchParam
- type SearchResult
- type SearchVectorDB
- type WebSearch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Search ¶
func Search(param *SearchParam) safe.Result[*[]SearchResult]
func SearchImages ¶
func SearchImages(param *SearchParam) safe.Result[*[]SearchResult]
func SearchWithOption ¶
func SearchWithOption(param *SearchParam, opt *ClientOption) safe.Result[*[]SearchResult]
Types ¶
type ClientOption ¶
func NewClientOption ¶
func NewClientOption(referrer, userAgent string, timeout time.Duration) *ClientOption
type ClientQuery ¶
type Feedback ¶
type Feedback struct { CallbacksHandler callbacks.Handler Query ClientQuery Llm llms.Model // contains filtered or unexported fields }
Feedback is a tool that can do math.
func (Feedback) Description ¶
type GetCryptoRate ¶
type GetCryptoRate struct { CallbacksHandler callbacks.Handler // contains filtered or unexported fields }
GetCryptoRate is a tool that can do get crypto rate.
func (GetCryptoRate) Description ¶
func (t GetCryptoRate) Description() string
func (GetCryptoRate) Name ¶
func (t GetCryptoRate) Name() string
type SearXResult ¶
type SearXResult struct { URL string `json:"url"` Title string `json:"title"` Content string `json:"content"` PublishedDate any `json:"publishedDate,omitempty"` ImgSrc any `json:"img_src,omitempty"` Engine string `json:"engine"` ParsedURL []string `json:"parsed_url"` Template string `json:"template"` Engines []string `json:"engines"` Positions []int `json:"positions"` Score float64 `json:"score"` Category string `json:"category"` }
func SearchSearX ¶
func SearchSearX(input string) ([]SearXResult, error)
type SearchParam ¶
func NewSearchImageParam ¶
func NewSearchImageParam(query, region, imageType string) (*SearchParam, error)
func NewSearchParam ¶
func NewSearchParam(query, region string) (*SearchParam, error)
type SearchResult ¶
type SearchVectorDB ¶
SearchVectorDB is a tool that finds the most relevant documents in the vector db.
func (SearchVectorDB) Description ¶
func (t SearchVectorDB) Description() string
func (SearchVectorDB) Name ¶
func (t SearchVectorDB) Name() string
type WebSearch ¶
func (WebSearch) Description ¶
Click to show internal directories.
Click to hide internal directories.