pub struct Request<'a> {
pub model: &'a str,
pub max_tokens: u32,
pub system: &'a [SystemBlock],
pub messages: &'a [UserMessage],
}Expand description
One LLM call’s worth of input. Mirrors the Anthropic Messages
request shape because it’s the most expressive of the three
providers we’ll support; OpenAI and Ollama adapters convert to
their native shapes inside their own complete impls.
Fields§
§model: &'a str§max_tokens: u32§system: &'a [SystemBlock]§messages: &'a [UserMessage]Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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