pub struct GenerateContentRequestBodyBuilder(/* private fields */);Expand description
Builder for GenerateContentRequestBody.
Implementations§
Source§impl GenerateContentRequestBodyBuilder
impl GenerateContentRequestBodyBuilder
pub fn compaction(self, value: impl Into<CompactionConfig>) -> Self
pub fn cache_control(self, value: impl Into<CacheControl>) -> Self
pub fn container(self, value: impl Into<ContainerParam>) -> Self
pub fn context_management( self, value: impl Into<ContextManagementConfig>, ) -> Self
pub fn diagnostics(self, value: impl Into<DiagnosticsParam>) -> Self
pub fn fallback_credit_token( self, value: impl Into<FallbackCreditTokenParam>, ) -> Self
pub fn fallbacks(self, value: impl Into<FallbacksParam>) -> Self
pub fn inference_geo(self, value: impl Into<String>) -> Self
pub fn mcp_servers(self, value: impl Into<Vec<McpServerUrlDefinition>>) -> Self
pub fn metadata(self, value: impl Into<Metadata>) -> Self
pub fn output_config(self, value: impl Into<OutputConfig>) -> Self
pub fn output_format(self, value: impl Into<JsonOutputFormat>) -> Self
pub fn service_tier(self, value: impl Into<ServiceTier>) -> Self
pub fn speed(self, value: impl Into<Speed>) -> Self
pub fn stop_sequences(self, value: impl Into<Vec<String>>) -> Self
pub fn stream(self, value: impl Into<bool>) -> Self
pub fn system(self, value: impl Into<SystemPrompt>) -> Self
pub fn thinking(self, value: impl Into<ThinkingConfig>) -> Self
pub fn tool_choice(self, value: impl Into<ToolChoice>) -> Self
pub fn tools(self, value: impl Into<Vec<ToolUnion>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> GenerateContentRequestBody
pub fn build(self) -> GenerateContentRequestBody
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for GenerateContentRequestBodyBuilder
impl RefUnwindSafe for GenerateContentRequestBodyBuilder
impl Send for GenerateContentRequestBodyBuilder
impl Sync for GenerateContentRequestBodyBuilder
impl Unpin for GenerateContentRequestBodyBuilder
impl UnsafeUnpin for GenerateContentRequestBodyBuilder
impl UnwindSafe for GenerateContentRequestBodyBuilder
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