pub struct ModelBuilder(/* private fields */);Expand description
Builder for Model.
Implementations§
Source§impl ModelBuilder
impl ModelBuilder
pub fn slug(self, value: impl Into<String>) -> Self
pub fn shutdown_date(self, value: impl Into<Option<String>>) -> Self
pub fn display_name(self, value: impl Into<String>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
pub fn instructions(self, value: impl Into<String>) -> Self
pub fn context_window(self, value: impl Into<u64>) -> Self
pub fn max_context_window(self, value: impl Into<u64>) -> Self
pub fn max_output_tokens(self, value: impl Into<u64>) -> Self
pub fn thinking_supported(self, value: impl Into<bool>) -> Self
pub fn input_modalities(self, value: impl Into<Vec<String>>) -> Self
pub fn output_modalities(self, value: impl Into<Vec<String>>) -> Self
pub fn supported_parameters(self, value: impl Into<Vec<String>>) -> Self
pub fn supported_reasoning_levels( self, value: impl Into<Vec<ModelReasoningLevel>>, ) -> Self
pub fn default_reasoning_level( self, value: impl Into<ModelReasoningEffort>, ) -> Self
pub fn service_tiers(self, value: impl Into<Vec<ModelServiceTier>>) -> Self
pub fn default_service_tier(self, value: impl Into<String>) -> Self
pub fn generation_methods(self, value: impl Into<Vec<String>>) -> Self
pub fn supported_actions(self, value: impl Into<Vec<String>>) -> Self
pub fn guardian(self, value: impl Into<GuardianModelPolicy>) -> Self
pub fn shell_type(self, value: impl Into<ConfigShellToolType>) -> Self
pub fn visibility(self, value: impl Into<ModelVisibility>) -> Self
pub fn supported_in_api(self, value: impl Into<bool>) -> Self
pub fn priority(self, value: impl Into<i32>) -> Self
pub fn additional_speed_tiers(self, value: impl Into<Vec<String>>) -> Self
pub fn available_access_programs( self, value: impl Into<ModelAccessPrograms>, ) -> Self
pub fn availability_nux(self, value: impl Into<ModelAvailabilityNux>) -> Self
pub fn upgrade(self, value: impl Into<ModelInfoUpgrade>) -> Self
pub fn model_messages(self, value: impl Into<ModelMessages>) -> Self
pub fn include_skills_usage_instructions(self, value: impl Into<bool>) -> Self
pub fn include_plugin_usage_instructions(self, value: impl Into<bool>) -> Self
pub fn include_apps_usage_instructions(self, value: impl Into<bool>) -> Self
pub fn supports_reasoning_summary_parameter( self, value: impl Into<bool>, ) -> Self
pub fn default_reasoning_summary( self, value: impl Into<ModelReasoningSummary>, ) -> Self
pub fn support_verbosity(self, value: impl Into<bool>) -> Self
pub fn default_verbosity(self, value: impl Into<TextVerbosity>) -> Self
pub fn apply_patch_tool_type(self, value: impl Into<ApplyPatchToolType>) -> Self
pub fn web_search_tool_type(self, value: impl Into<WebSearchToolType>) -> Self
pub fn truncation_policy(self, value: impl Into<TruncationPolicyConfig>) -> Self
pub fn supports_image_detail_original(self, value: impl Into<bool>) -> Self
pub fn auto_compact_token_limit(self, value: impl Into<i64>) -> Self
pub fn comp_hash(self, value: impl Into<String>) -> Self
pub fn effective_context_window_percent(self, value: impl Into<i64>) -> Self
pub fn experimental_supported_tools(self, value: impl Into<Vec<String>>) -> Self
pub fn supports_search_tool(self, value: impl Into<bool>) -> Self
pub fn supports_experimental_context(self, value: impl Into<bool>) -> Self
pub fn use_responses_lite(self, value: impl Into<bool>) -> Self
pub fn supports_reasoning_effort_updates(self, value: impl Into<bool>) -> Self
pub fn node_repl_auto_review_required(self, value: impl Into<bool>) -> Self
pub fn node_repl_disabled(self, value: impl Into<bool>) -> Self
pub fn auto_review_model_override(self, value: impl Into<String>) -> Self
pub fn model_specialty(self, value: impl Into<String>) -> Self
pub fn tool_mode(self, value: impl Into<ToolMode>) -> Self
pub fn multi_agent_version(self, value: impl Into<MultiAgentVersion>) -> Self
pub fn multi_agent_reasoning_effort( self, value: impl Into<ModelReasoningEffort>, ) -> Self
pub fn base_instructions(self, value: impl Into<String>) -> Self
pub fn prefer_websockets(self, value: impl Into<bool>) -> Self
pub fn supports_parallel_tool_calls(self, value: impl Into<bool>) -> Self
pub fn supports_reasoning_summaries(self, value: impl Into<bool>) -> Self
pub fn requires_sandboxed_review(self, value: impl Into<bool>) -> Self
pub fn available_in_plans(self, value: impl Into<Vec<String>>) -> Self
pub fn minimal_client_version(self, value: impl Into<ClientVersion>) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for ModelBuilder
impl RefUnwindSafe for ModelBuilder
impl Send for ModelBuilder
impl Sync for ModelBuilder
impl Unpin for ModelBuilder
impl UnsafeUnpin for ModelBuilder
impl UnwindSafe for ModelBuilder
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