pub struct CountTokensRequestBodyBuilder(/* private fields */);Expand description
Builder for CountTokensRequestBody.
Implementations§
Source§impl CountTokensRequestBodyBuilder
impl CountTokensRequestBodyBuilder
pub fn cache_control(self, value: impl Into<CacheControl>) -> Self
pub fn context_management( self, value: impl Into<ContextManagementConfig>, ) -> Self
pub fn mcp_servers(self, value: impl Into<Vec<McpServerUrlDefinition>>) -> Self
pub fn output_config(self, value: impl Into<OutputConfig>) -> Self
pub fn output_format(self, value: impl Into<JsonOutputFormat>) -> Self
pub fn speed(self, value: impl Into<Speed>) -> 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) -> CountTokensRequestBody
pub fn build(self) -> CountTokensRequestBody
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for CountTokensRequestBodyBuilder
impl RefUnwindSafe for CountTokensRequestBodyBuilder
impl Send for CountTokensRequestBodyBuilder
impl Sync for CountTokensRequestBodyBuilder
impl Unpin for CountTokensRequestBodyBuilder
impl UnsafeUnpin for CountTokensRequestBodyBuilder
impl UnwindSafe for CountTokensRequestBodyBuilder
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