pub struct Request {
pub model: Model,
pub messages: Vec<Message>,
pub options: StreamOptions,
}Expand description
Everything one provider request needs.
Fields§
§model: ModelThe model to call.
messages: Vec<Message>The transcript. The first message may be the system prompt.
options: StreamOptionsRequest options.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Request
impl !UnwindSafe for Request
impl Forget for Request
impl Freeze for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
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