pub struct ProviderRequest {
pub model: Option<String>,
pub messages: Vec<ProviderMessage>,
pub tools: Vec<ToolSchema>,
pub max_tokens: Option<u32>,
pub temperature: Option<f64>,
pub system: Option<String>,
pub extra: Value,
}Expand description
Request sent to a provider.
Fields§
§model: Option<String>Model to use (None = provider default).
messages: Vec<ProviderMessage>Conversation messages.
tools: Vec<ToolSchema>Available tools.
max_tokens: Option<u32>Maximum output tokens.
temperature: Option<f64>Sampling temperature.
system: Option<String>System prompt.
extra: ValueProvider-specific config passthrough.
Trait Implementations§
Source§impl Clone for ProviderRequest
impl Clone for ProviderRequest
Source§fn clone(&self) -> ProviderRequest
fn clone(&self) -> ProviderRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderRequest
impl Debug for ProviderRequest
Source§impl<'de> Deserialize<'de> for ProviderRequest
impl<'de> Deserialize<'de> for ProviderRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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