Skip to main content

ModelBuilder

Struct ModelBuilder 

Source
pub struct ModelBuilder(/* private fields */);
Expand description

Builder for Model.

Implementations§

Source§

impl ModelBuilder

Source

pub fn slug(self, value: impl Into<String>) -> Self

Source

pub fn shutdown_date(self, value: impl Into<Option<String>>) -> Self

Source

pub fn display_name(self, value: impl Into<String>) -> Self

Source

pub fn description(self, value: impl Into<String>) -> Self

Source

pub fn instructions(self, value: impl Into<String>) -> Self

Source

pub fn context_window(self, value: impl Into<u64>) -> Self

Source

pub fn max_context_window(self, value: impl Into<u64>) -> Self

Source

pub fn max_output_tokens(self, value: impl Into<u64>) -> Self

Source

pub fn thinking_supported(self, value: impl Into<bool>) -> Self

Source

pub fn input_modalities(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn output_modalities(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn supported_parameters(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn supported_reasoning_levels( self, value: impl Into<Vec<ModelReasoningLevel>>, ) -> Self

Source

pub fn default_reasoning_level( self, value: impl Into<ModelReasoningEffort>, ) -> Self

Source

pub fn service_tiers(self, value: impl Into<Vec<ModelServiceTier>>) -> Self

Source

pub fn default_service_tier(self, value: impl Into<String>) -> Self

Source

pub fn generation_methods(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn supported_actions(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn guardian(self, value: impl Into<GuardianModelPolicy>) -> Self

Source

pub fn shell_type(self, value: impl Into<ConfigShellToolType>) -> Self

Source

pub fn visibility(self, value: impl Into<ModelVisibility>) -> Self

Source

pub fn supported_in_api(self, value: impl Into<bool>) -> Self

Source

pub fn priority(self, value: impl Into<i32>) -> Self

Source

pub fn additional_speed_tiers(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn available_access_programs( self, value: impl Into<ModelAccessPrograms>, ) -> Self

Source

pub fn availability_nux(self, value: impl Into<ModelAvailabilityNux>) -> Self

Source

pub fn upgrade(self, value: impl Into<ModelInfoUpgrade>) -> Self

Source

pub fn model_messages(self, value: impl Into<ModelMessages>) -> Self

Source

pub fn include_skills_usage_instructions(self, value: impl Into<bool>) -> Self

Source

pub fn include_plugin_usage_instructions(self, value: impl Into<bool>) -> Self

Source

pub fn include_apps_usage_instructions(self, value: impl Into<bool>) -> Self

Source

pub fn supports_reasoning_summary_parameter( self, value: impl Into<bool>, ) -> Self

Source

pub fn default_reasoning_summary( self, value: impl Into<ModelReasoningSummary>, ) -> Self

Source

pub fn support_verbosity(self, value: impl Into<bool>) -> Self

Source

pub fn default_verbosity(self, value: impl Into<TextVerbosity>) -> Self

Source

pub fn apply_patch_tool_type(self, value: impl Into<ApplyPatchToolType>) -> Self

Source

pub fn web_search_tool_type(self, value: impl Into<WebSearchToolType>) -> Self

Source

pub fn truncation_policy(self, value: impl Into<TruncationPolicyConfig>) -> Self

Source

pub fn supports_image_detail_original(self, value: impl Into<bool>) -> Self

Source

pub fn auto_compact_token_limit(self, value: impl Into<i64>) -> Self

Source

pub fn comp_hash(self, value: impl Into<String>) -> Self

Source

pub fn effective_context_window_percent(self, value: impl Into<i64>) -> Self

Source

pub fn experimental_supported_tools(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn supports_search_tool(self, value: impl Into<bool>) -> Self

Source

pub fn supports_experimental_context(self, value: impl Into<bool>) -> Self

Source

pub fn use_responses_lite(self, value: impl Into<bool>) -> Self

Source

pub fn supports_reasoning_effort_updates(self, value: impl Into<bool>) -> Self

Source

pub fn node_repl_auto_review_required(self, value: impl Into<bool>) -> Self

Source

pub fn node_repl_disabled(self, value: impl Into<bool>) -> Self

Source

pub fn auto_review_model_override(self, value: impl Into<String>) -> Self

Source

pub fn model_specialty(self, value: impl Into<String>) -> Self

Source

pub fn tool_mode(self, value: impl Into<ToolMode>) -> Self

Source

pub fn multi_agent_version(self, value: impl Into<MultiAgentVersion>) -> Self

Source

pub fn multi_agent_reasoning_effort( self, value: impl Into<ModelReasoningEffort>, ) -> Self

Source

pub fn base_instructions(self, value: impl Into<String>) -> Self

Source

pub fn prefer_websockets(self, value: impl Into<bool>) -> Self

Source

pub fn supports_parallel_tool_calls(self, value: impl Into<bool>) -> Self

Source

pub fn supports_reasoning_summaries(self, value: impl Into<bool>) -> Self

Source

pub fn requires_sandboxed_review(self, value: impl Into<bool>) -> Self

Source

pub fn available_in_plans(self, value: impl Into<Vec<String>>) -> Self

Source

pub fn minimal_client_version(self, value: impl Into<ClientVersion>) -> Self

Source

pub fn rest(self, value: Rest) -> Self

Source

pub fn build(self) -> Model

Return the completed wire value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ResourceSend for T
where T: Send + ?Sized,

Source§

impl<T> ResourceSync for T
where T: Sync + ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.