4.2 KiB
CodeAskAnswer
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Answer | Pointer to string | Answer is the synthesized prose. EMPTY is a real answer here: nothing in the index matched, or synthesis was unavailable — read `degraded` and `citations` to tell those apart. It is never written without grounding. | [optional] |
| Citations | Pointer to []CodeCitation | Citations are the exact regions the answer was grounded on, and they are the point: an answer is checkable only because every claim in it can be read back at a file and line. Present even when Answer is empty. | [optional] |
| Degraded | Pointer to bool | Degraded is true when retrieval worked but no synthesizer was reachable. The citations are still real code, so a caller can answer from them itself; a caller that treats this like an error throws away a usable result. | [optional] |
| Question | Pointer to string | Question is the ask, echoed back. | [optional] |
Methods
NewCodeAskAnswer
func NewCodeAskAnswer() *CodeAskAnswer
NewCodeAskAnswer instantiates a new CodeAskAnswer 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
NewCodeAskAnswerWithDefaults
func NewCodeAskAnswerWithDefaults() *CodeAskAnswer
NewCodeAskAnswerWithDefaults instantiates a new CodeAskAnswer 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
GetAnswer
func (o *CodeAskAnswer) GetAnswer() string
GetAnswer returns the Answer field if non-nil, zero value otherwise.
GetAnswerOk
func (o *CodeAskAnswer) GetAnswerOk() (*string, bool)
GetAnswerOk returns a tuple with the Answer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetAnswer
func (o *CodeAskAnswer) SetAnswer(v string)
SetAnswer sets Answer field to given value.
HasAnswer
func (o *CodeAskAnswer) HasAnswer() bool
HasAnswer returns a boolean if a field has been set.
GetCitations
func (o *CodeAskAnswer) GetCitations() []CodeCitation
GetCitations returns the Citations field if non-nil, zero value otherwise.
GetCitationsOk
func (o *CodeAskAnswer) GetCitationsOk() (*[]CodeCitation, bool)
GetCitationsOk returns a tuple with the Citations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCitations
func (o *CodeAskAnswer) SetCitations(v []CodeCitation)
SetCitations sets Citations field to given value.
HasCitations
func (o *CodeAskAnswer) HasCitations() bool
HasCitations returns a boolean if a field has been set.
GetDegraded
func (o *CodeAskAnswer) GetDegraded() bool
GetDegraded returns the Degraded field if non-nil, zero value otherwise.
GetDegradedOk
func (o *CodeAskAnswer) GetDegradedOk() (*bool, bool)
GetDegradedOk returns a tuple with the Degraded field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDegraded
func (o *CodeAskAnswer) SetDegraded(v bool)
SetDegraded sets Degraded field to given value.
HasDegraded
func (o *CodeAskAnswer) HasDegraded() bool
HasDegraded returns a boolean if a field has been set.
GetQuestion
func (o *CodeAskAnswer) GetQuestion() string
GetQuestion returns the Question field if non-nil, zero value otherwise.
GetQuestionOk
func (o *CodeAskAnswer) GetQuestionOk() (*string, bool)
GetQuestionOk returns a tuple with the Question field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetQuestion
func (o *CodeAskAnswer) SetQuestion(v string)
SetQuestion sets Question field to given value.
HasQuestion
func (o *CodeAskAnswer) HasQuestion() bool
HasQuestion returns a boolean if a field has been set.