pub struct ModelRequest {
pub system_prompt: Option<String>,
pub messages: Vec<Message>,
pub tools: Vec<ToolDefinition>,
}Expand description
Input sent to the model.
Fields§
§system_prompt: Option<String>§messages: Vec<Message>§tools: Vec<ToolDefinition>Trait Implementations§
Source§impl Clone for ModelRequest
impl Clone for ModelRequest
Auto Trait Implementations§
impl Freeze for ModelRequest
impl RefUnwindSafe for ModelRequest
impl Send for ModelRequest
impl Sync for ModelRequest
impl Unpin for ModelRequest
impl UnsafeUnpin for ModelRequest
impl UnwindSafe for ModelRequest
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