pub struct ModelRequestBuilder { /* private fields */ }Implementations§
Source§impl ModelRequestBuilder
impl ModelRequestBuilder
Sourcepub fn fragment(self, fragment: PromptFragment) -> Self
pub fn fragment(self, fragment: PromptFragment) -> Self
The only way to add content — a pre-attributed fragment.
pub fn tool(self, tool: ToolDefinition) -> Self
pub fn max_output_tokens(self, tokens: u32) -> Self
pub fn thinking_level(self, level: ThinkingLevel) -> Self
pub fn build(self) -> ModelRequest
Auto Trait Implementations§
impl Freeze for ModelRequestBuilder
impl RefUnwindSafe for ModelRequestBuilder
impl Send for ModelRequestBuilder
impl Sync for ModelRequestBuilder
impl Unpin for ModelRequestBuilder
impl UnsafeUnpin for ModelRequestBuilder
impl UnwindSafe for ModelRequestBuilder
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