4.7 KiB
AskWebQuestion
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Language | Pointer to string | Language narrows the search to a locale, BCP-47-ish ("en", "ja"). Empty means no narrowing. | [optional] |
| MaxSources | Pointer to int64 | MaxSources caps how many pages are read. Empty means the mode's own budget. | [optional] |
| Mode | Pointer to string | Mode is how much work to do: `search` (fast, one pass), `news` (recency biased), `research` (a plan and several rounds) or `deep` (the widest survey). Empty means research. | [optional] |
| Q | Pointer to string | Q is the question, in plain language. Required. | [optional] |
| Sources | Pointer to []string | Sources narrows where the evidence comes from: any of `web`, `news`, `academic`, `github`, `reddit`, `x`. Each becomes a site-scoped search, so `["x"]` researches X/Twitter posts rather than the open web. | [optional] |
Methods
NewAskWebQuestion
func NewAskWebQuestion() *AskWebQuestion
NewAskWebQuestion instantiates a new AskWebQuestion object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewAskWebQuestionWithDefaults
func NewAskWebQuestionWithDefaults() *AskWebQuestion
NewAskWebQuestionWithDefaults instantiates a new AskWebQuestion object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetLanguage
func (o *AskWebQuestion) GetLanguage() string
GetLanguage returns the Language field if non-nil, zero value otherwise.
GetLanguageOk
func (o *AskWebQuestion) GetLanguageOk() (*string, bool)
GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLanguage
func (o *AskWebQuestion) SetLanguage(v string)
SetLanguage sets Language field to given value.
HasLanguage
func (o *AskWebQuestion) HasLanguage() bool
HasLanguage returns a boolean if a field has been set.
GetMaxSources
func (o *AskWebQuestion) GetMaxSources() int64
GetMaxSources returns the MaxSources field if non-nil, zero value otherwise.
GetMaxSourcesOk
func (o *AskWebQuestion) GetMaxSourcesOk() (*int64, bool)
GetMaxSourcesOk returns a tuple with the MaxSources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMaxSources
func (o *AskWebQuestion) SetMaxSources(v int64)
SetMaxSources sets MaxSources field to given value.
HasMaxSources
func (o *AskWebQuestion) HasMaxSources() bool
HasMaxSources returns a boolean if a field has been set.
GetMode
func (o *AskWebQuestion) GetMode() string
GetMode returns the Mode field if non-nil, zero value otherwise.
GetModeOk
func (o *AskWebQuestion) GetModeOk() (*string, bool)
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMode
func (o *AskWebQuestion) SetMode(v string)
SetMode sets Mode field to given value.
HasMode
func (o *AskWebQuestion) HasMode() bool
HasMode returns a boolean if a field has been set.
GetQ
func (o *AskWebQuestion) GetQ() string
GetQ returns the Q field if non-nil, zero value otherwise.
GetQOk
func (o *AskWebQuestion) GetQOk() (*string, bool)
GetQOk returns a tuple with the Q field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetQ
func (o *AskWebQuestion) SetQ(v string)
SetQ sets Q field to given value.
HasQ
func (o *AskWebQuestion) HasQ() bool
HasQ returns a boolean if a field has been set.
GetSources
func (o *AskWebQuestion) GetSources() []string
GetSources returns the Sources field if non-nil, zero value otherwise.
GetSourcesOk
func (o *AskWebQuestion) GetSourcesOk() (*[]string, bool)
GetSourcesOk returns a tuple with the Sources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSources
func (o *AskWebQuestion) SetSources(v []string)
SetSources sets Sources field to given value.
HasSources
func (o *AskWebQuestion) HasSources() bool
HasSources returns a boolean if a field has been set.