pub struct GoogleCloudAiplatformV1Candidate {
pub score: Option<f64>,
pub finish_message: Option<String>,
pub citation_metadata: Option<GoogleCloudAiplatformV1CitationMetadata>,
pub grounding_metadata: Option<GoogleCloudAiplatformV1GroundingMetadata>,
pub safety_ratings: Option<Vec<GoogleCloudAiplatformV1SafetyRating>>,
pub content: Option<GoogleCloudAiplatformV1Content>,
pub finish_reason: Option<String>,
pub index: Option<i32>,
}Expand description
A response candidate generated from the model.
This type is not used in any activity, and only used as part of another schema.
Fields§
§score: Option<f64>Output only. Confidence score of the candidate.
finish_message: Option<String>Output only. Describes the reason the mode stopped generating tokens in more detail. This is only filled when finish_reason is set.
citation_metadata: Option<GoogleCloudAiplatformV1CitationMetadata>Output only. Source attribution of the generated content.
grounding_metadata: Option<GoogleCloudAiplatformV1GroundingMetadata>Output only. Metadata specifies sources used to ground generated content.
safety_ratings: Option<Vec<GoogleCloudAiplatformV1SafetyRating>>Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
content: Option<GoogleCloudAiplatformV1Content>Output only. Content parts of the candidate.
finish_reason: Option<String>Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
index: Option<i32>Output only. Index of the candidate.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1Candidate
impl Clone for GoogleCloudAiplatformV1Candidate
Source§fn clone(&self) -> GoogleCloudAiplatformV1Candidate
fn clone(&self) -> GoogleCloudAiplatformV1Candidate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleCloudAiplatformV1Candidate
impl Default for GoogleCloudAiplatformV1Candidate
Source§fn default() -> GoogleCloudAiplatformV1Candidate
fn default() -> GoogleCloudAiplatformV1Candidate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Candidate
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Candidate
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudAiplatformV1Candidate
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1Candidate
impl RefUnwindSafe for GoogleCloudAiplatformV1Candidate
impl Send for GoogleCloudAiplatformV1Candidate
impl Sync for GoogleCloudAiplatformV1Candidate
impl Unpin for GoogleCloudAiplatformV1Candidate
impl UnwindSafe for GoogleCloudAiplatformV1Candidate
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
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more