pub struct ProviderRequest {
pub system_prompt: String,
pub messages: Vec<Message>,
pub tools: Vec<ToolSpec>,
}Expand description
One model request: the system prompt, the selected history, and the tools.
Fields§
§system_prompt: String§messages: Vec<Message>§tools: Vec<ToolSpec>Trait Implementations§
Source§impl Clone for ProviderRequest
impl Clone for ProviderRequest
Auto Trait Implementations§
impl Freeze for ProviderRequest
impl RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl UnsafeUnpin for ProviderRequest
impl UnwindSafe for ProviderRequest
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