pub struct GenerateContentRequestBodyBuilder(/* private fields */);Expand description
Builder for GenerateContentRequestBody.
Implementations§
Source§impl GenerateContentRequestBodyBuilder
impl GenerateContentRequestBodyBuilder
pub fn multi_agent(self, value: impl Into<Option<MultiAgentConfig>>) -> Self
pub fn background(self, value: impl Into<Option<bool>>) -> Self
pub fn context_management( self, value: impl Into<Option<Vec<ContextManagement>>>, ) -> Self
pub fn conversation(self, value: impl Into<Option<ConversationParam>>) -> Self
pub fn include(self, value: impl Into<Option<Vec<ResponseIncludable>>>) -> Self
pub fn input(self, value: impl Into<Input>) -> Self
pub fn instructions(self, value: impl Into<Option<String>>) -> Self
pub fn max_output_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn max_tool_calls(self, value: impl Into<Option<i64>>) -> Self
pub fn metadata( self, value: impl Into<Option<BTreeMap<String, String>>>, ) -> Self
pub fn model(self, value: impl Into<String>) -> Self
pub fn moderation(self, value: impl Into<Option<ResponseModeration>>) -> Self
pub fn parallel_tool_calls(self, value: impl Into<Option<bool>>) -> Self
pub fn previous_response_id(self, value: impl Into<Option<String>>) -> Self
pub fn prompt(self, value: impl Into<Option<ResponsePrompt>>) -> 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(self, value: impl Into<Option<ReasoningConfig>>) -> Self
pub fn safety_identifier(self, value: impl Into<Option<String>>) -> Self
pub fn service_tier(self, value: impl Into<Option<ServiceTier>>) -> 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<Number>>) -> Self
pub fn text(self, value: impl Into<TextConfig>) -> Self
pub fn tool_choice(self, value: impl Into<ToolChoice>) -> Self
pub fn tools(self, value: impl Into<Vec<Tool>>) -> Self
pub fn top_logprobs(self, value: impl Into<Option<i64>>) -> Self
pub fn top_p(self, value: impl Into<Option<Number>>) -> Self
pub fn truncation(self, value: impl Into<Option<GenerateTruncation>>) -> Self
pub fn user(self, value: impl Into<String>) -> 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