pub struct GoogleCloudAiplatformV1GenerateContentRequest {
pub generation_config: Option<GoogleCloudAiplatformV1GenerationConfig>,
pub safety_settings: Option<Vec<GoogleCloudAiplatformV1SafetySetting>>,
pub system_instruction: Option<GoogleCloudAiplatformV1Content>,
pub contents: Option<Vec<GoogleCloudAiplatformV1Content>>,
pub tool_config: Option<GoogleCloudAiplatformV1ToolConfig>,
pub tools: Option<Vec<GoogleCloudAiplatformV1Tool>>,
}Expand description
Request message for [PredictionService.GenerateContent].
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§generation_config: Option<GoogleCloudAiplatformV1GenerationConfig>Optional. Generation config.
safety_settings: Option<Vec<GoogleCloudAiplatformV1SafetySetting>>Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
system_instruction: Option<GoogleCloudAiplatformV1Content>Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
contents: Option<Vec<GoogleCloudAiplatformV1Content>>Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
tool_config: Option<GoogleCloudAiplatformV1ToolConfig>Optional. Tool config. This config is shared for all tools provided in the request.
tools: Option<Vec<GoogleCloudAiplatformV1Tool>>Optional. A list of Tools the model may use to generate the next response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1GenerateContentRequest
impl Clone for GoogleCloudAiplatformV1GenerateContentRequest
Source§fn clone(&self) -> GoogleCloudAiplatformV1GenerateContentRequest
fn clone(&self) -> GoogleCloudAiplatformV1GenerateContentRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1GenerateContentRequest
impl Default for GoogleCloudAiplatformV1GenerateContentRequest
Source§fn default() -> GoogleCloudAiplatformV1GenerateContentRequest
fn default() -> GoogleCloudAiplatformV1GenerateContentRequest
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1GenerateContentRequest
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1GenerateContentRequest
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>,
impl RequestValue for GoogleCloudAiplatformV1GenerateContentRequest
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1GenerateContentRequest
impl RefUnwindSafe for GoogleCloudAiplatformV1GenerateContentRequest
impl Send for GoogleCloudAiplatformV1GenerateContentRequest
impl Sync for GoogleCloudAiplatformV1GenerateContentRequest
impl Unpin for GoogleCloudAiplatformV1GenerateContentRequest
impl UnwindSafe for GoogleCloudAiplatformV1GenerateContentRequest
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> 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>
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>
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