pub struct CreateCachedContentRequest {
pub display_name: Option<String>,
pub model: Model,
pub contents: Option<Vec<Content>>,
pub tools: Option<Vec<Tool>>,
pub system_instruction: Option<Content>,
pub tool_config: Option<ToolConfig>,
pub expiration: CacheExpirationRequest,
}
Expand description
Request for creating cached content.
Fields§
§display_name: Option<String>
The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
model: Model
Required. The name of the model to use for cached content.
contents: Option<Vec<Content>>
Optional. Input only. Immutable. The content to cache.
tools: Option<Vec<Tool>>
Optional. Input only. Immutable. A list of tools the model may use to generate the next response.
system_instruction: Option<Content>
Optional. Input only. Immutable. Developer set system instruction. Currently text only.
tool_config: Option<ToolConfig>
Optional. Input only. Immutable. Tool config. This config is shared for all tools.
expiration: CacheExpirationRequest
Expiration configuration for the cached content.
Trait Implementations§
Source§impl Clone for CreateCachedContentRequest
impl Clone for CreateCachedContentRequest
Source§fn clone(&self) -> CreateCachedContentRequest
fn clone(&self) -> CreateCachedContentRequest
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 Debug for CreateCachedContentRequest
impl Debug for CreateCachedContentRequest
impl StructuralPartialEq for CreateCachedContentRequest
Auto Trait Implementations§
impl Freeze for CreateCachedContentRequest
impl RefUnwindSafe for CreateCachedContentRequest
impl Send for CreateCachedContentRequest
impl Sync for CreateCachedContentRequest
impl Unpin for CreateCachedContentRequest
impl UnwindSafe for CreateCachedContentRequest
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