#[non_exhaustive]pub enum AnswerSkippedReason {
Show 13 variants
Unspecified,
AdversarialQueryIgnored,
NonAnswerSeekingQueryIgnored,
OutOfDomainQueryIgnored,
PotentialPolicyViolation,
NoRelevantContent,
JailBreakingQueryIgnored,
CustomerPolicyViolation,
NonAnswerSeekingQueryIgnoredV2,
LowGroundedAnswer,
UserDefinedClassificationQueryIgnored,
UnhelpfulAnswer,
UnknownValue(UnknownValue),
}conversational-search-service or session-service only.Expand description
An enum for answer skipped reasons.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Default value. The answer skipped reason is not specified.
AdversarialQueryIgnored
The adversarial query ignored case.
NonAnswerSeekingQueryIgnored
The non-answer seeking query ignored case
Google skips the answer if the query is chit chat.
OutOfDomainQueryIgnored
The out-of-domain query ignored case.
Google skips the answer if there are no high-relevance search results.
PotentialPolicyViolation
The potential policy violation case.
Google skips the answer if there is a potential policy violation detected. This includes content that may be violent or toxic.
NoRelevantContent
The no relevant content case.
Google skips the answer if there is no relevant content in the retrieved search results.
JailBreakingQueryIgnored
The jail-breaking query ignored case.
For example, “Reply in the tone of a competing company’s CEO”. Google skips the answer if the query is classified as a jail-breaking query.
CustomerPolicyViolation
The customer policy violation case.
Google skips the summary if there is a customer policy violation detected. The policy is defined by the customer.
NonAnswerSeekingQueryIgnoredV2
The non-answer seeking query ignored case.
Google skips the answer if the query doesn’t have clear intent.
LowGroundedAnswer
The low-grounded answer case.
Google skips the answer if a well grounded answer was unable to be generated.
UserDefinedClassificationQueryIgnored
The user defined query classification ignored case.
Google skips the answer if the query is classified as a user defined query classification.
UnhelpfulAnswer
The unhelpful answer case.
Google skips the answer if the answer is not helpful. This can be due to a variety of factors, including but not limited to: the query is not answerable, the answer is not relevant to the query, or the answer is not well-formatted.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using AnswerSkippedReason::value or AnswerSkippedReason::name.
Implementations§
Trait Implementations§
Source§impl Clone for AnswerSkippedReason
impl Clone for AnswerSkippedReason
Source§fn clone(&self) -> AnswerSkippedReason
fn clone(&self) -> AnswerSkippedReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnswerSkippedReason
impl Debug for AnswerSkippedReason
Source§impl Default for AnswerSkippedReason
impl Default for AnswerSkippedReason
Source§impl<'de> Deserialize<'de> for AnswerSkippedReason
impl<'de> Deserialize<'de> for AnswerSkippedReason
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for AnswerSkippedReason
impl Display for AnswerSkippedReason
Source§impl From<&str> for AnswerSkippedReason
impl From<&str> for AnswerSkippedReason
Source§impl From<i32> for AnswerSkippedReason
impl From<i32> for AnswerSkippedReason
Source§impl PartialEq for AnswerSkippedReason
impl PartialEq for AnswerSkippedReason
Source§impl Serialize for AnswerSkippedReason
impl Serialize for AnswerSkippedReason
impl StructuralPartialEq for AnswerSkippedReason
Auto Trait Implementations§
impl Freeze for AnswerSkippedReason
impl RefUnwindSafe for AnswerSkippedReason
impl Send for AnswerSkippedReason
impl Sync for AnswerSkippedReason
impl Unpin for AnswerSkippedReason
impl UnwindSafe for AnswerSkippedReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.