pub struct ProviderRequest {
pub messages: Vec<ChatMessage>,
pub model: String,
pub provider: String,
pub base_url: String,
pub api_key: Option<String>,
}Expand description
Fully-resolved request ready for dispatch to a model provider.
Created by merging an incoming ChatRequest with the gateway’s
ModelContext defaults.
Fields§
§messages: Vec<ChatMessage>§model: String§provider: String§base_url: String§api_key: Option<String>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