pub struct CountTokensRequestBodyBuilder(/* private fields */);Expand description
Builder for CountTokensRequestBody.
Implementations§
Source§impl CountTokensRequestBodyBuilder
impl CountTokensRequestBodyBuilder
pub fn conversation(self, value: impl Into<Option<ConversationParam>>) -> Self
pub fn input(self, value: impl Into<Option<Input>>) -> Self
pub fn instructions(self, value: impl Into<Option<String>>) -> Self
pub fn model(self, value: impl Into<Option<String>>) -> Self
pub fn parallel_tool_calls(self, value: impl Into<Option<bool>>) -> Self
pub fn personality(self, value: impl Into<String>) -> Self
pub fn previous_response_id(self, value: impl Into<Option<String>>) -> Self
pub fn reasoning(self, value: impl Into<Option<ReasoningConfig>>) -> Self
pub fn text(self, value: impl Into<Option<TextConfig>>) -> Self
pub fn tool_choice(self, value: impl Into<Option<ToolChoice>>) -> Self
pub fn tools(self, value: impl Into<Option<Vec<Tool>>>) -> Self
pub fn truncation(self, value: impl Into<Truncation>) -> 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