pub struct GenerateContentRequestBodyBuilder(/* private fields */);Expand description
Builder for GenerateContentRequestBody.
Implementations§
Source§impl GenerateContentRequestBodyBuilder
impl GenerateContentRequestBodyBuilder
pub fn audio(self, value: impl Into<Option<ChatAudioParam>>) -> Self
pub fn frequency_penalty(self, value: impl Into<Option<f64>>) -> Self
pub fn function_call(self, value: impl Into<FunctionCallChoice>) -> Self
pub fn functions(self, value: impl Into<Vec<LegacyFunction>>) -> Self
pub fn logit_bias(self, value: impl Into<Option<BTreeMap<String, f64>>>) -> Self
pub fn logprobs(self, value: impl Into<Option<bool>>) -> Self
pub fn max_completion_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn max_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn metadata( self, value: impl Into<Option<BTreeMap<String, String>>>, ) -> Self
pub fn modalities(self, value: impl Into<Option<Vec<Modality>>>) -> Self
pub fn moderation(self, value: impl Into<Option<Moderation>>) -> Self
pub fn n(self, value: impl Into<Option<i64>>) -> Self
pub fn parallel_tool_calls(self, value: impl Into<bool>) -> Self
pub fn prediction(self, value: impl Into<Option<Prediction>>) -> Self
pub fn presence_penalty(self, value: impl Into<Option<f64>>) -> Self
pub fn prompt_cache_key(self, value: impl Into<Option<String>>) -> Self
pub fn prompt_cache_options(self, value: impl Into<PromptCacheOptions>) -> Self
pub fn prompt_cache_retention( self, value: impl Into<Option<PromptCacheRetention>>, ) -> Self
pub fn reasoning_effort(self, value: impl Into<Option<ReasoningEffort>>) -> Self
pub fn response_format(self, value: impl Into<ResponseFormat>) -> Self
pub fn safety_identifier(self, value: impl Into<Option<String>>) -> Self
pub fn seed(self, value: impl Into<Option<i64>>) -> Self
pub fn service_tier(self, value: impl Into<Option<ServiceTier>>) -> Self
pub fn stop(self, value: impl Into<Option<Stop>>) -> Self
pub fn store(self, value: impl Into<Option<bool>>) -> Self
pub fn stream(self, value: impl Into<Option<bool>>) -> Self
pub fn stream_options(self, value: impl Into<Option<StreamOptions>>) -> Self
pub fn temperature(self, value: impl Into<Option<f64>>) -> Self
pub fn tool_choice(self, value: impl Into<ToolChoice>) -> Self
pub fn tools(self, value: impl Into<Vec<ChatTool>>) -> Self
pub fn top_logprobs(self, value: impl Into<Option<i64>>) -> Self
pub fn top_p(self, value: impl Into<Option<f64>>) -> Self
pub fn user(self, value: impl Into<String>) -> Self
pub fn verbosity(self, value: impl Into<Option<Verbosity>>) -> Self
pub fn web_search_options(self, value: impl Into<WebSearchOptions>) -> 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