pub struct AiRequestBuilder { /* private fields */ }Implementations§
Source§impl AiRequestBuilder
impl AiRequestBuilder
pub fn new( messages: Vec<AiMessage>, provider: impl Into<String>, model: impl Into<String>, max_output_tokens: u32, context: RequestContext, ) -> Self
pub fn with_sampling(self, sampling: SamplingParams) -> Self
pub fn with_tools(self, tools: Vec<McpTool>) -> Self
pub fn with_structured_output(self, options: StructuredOutputOptions) -> Self
pub fn with_system_prompt(self, prompt: impl Into<String>) -> Self
pub fn build(self) -> AiRequest
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AiRequestBuilder
impl RefUnwindSafe for AiRequestBuilder
impl Send for AiRequestBuilder
impl Sync for AiRequestBuilder
impl Unpin for AiRequestBuilder
impl UnwindSafe for AiRequestBuilder
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