Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextSize ¶
type ContextSize string
const ( ContextSizeLow ContextSize = "low" ContextSizeMedium ContextSize = "medium" ContextSizeHigh ContextSize = "high" )
type Perplexity ¶
func (*Perplexity) RequestOptionsType ¶
func (*Perplexity) RequestOptionsType() reflect.Type
type RecencyFilter ¶
type RecencyFilter string
type RequestOptions ¶
type RequestOptions struct {
SearchMode SearchMode `structs:"search_mode,omitempty"`
SearchRecency string `structs:"search_recency_filter,omitempty"`
BeforeDate date `structs:"search_before_date_filter,string,omitempty"`
AfterDate date `structs:"search_after_date_filter,string,omitempty"`
LastUpdatedBefore date `structs:"last_updated_before_filter,string,omitempty"`
LastUpdatedAfter date `structs:"last_updated_after_filter,string,omitempty"`
SearchDomainFilter []string `structs:"search_domain_filter,omitempty"`
WebSearch WebSearch `structs:"web_search_options,omitempty"`
}
func (RequestOptions) ProviderRequestOptions ¶
func (RequestOptions) ProviderRequestOptions()
type SearchMode ¶
type SearchMode string
const ( SearchModeWeb SearchMode = "web" SearchModeAcademic SearchMode = "academic" )
type SearchResult ¶
type UserLocation ¶
type WebSearch ¶
type WebSearch struct {
ContextSize ContextSize `structs:"search_context_size,omitempty"`
UserLocation UserLocation `structs:"user_location,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.