pub struct ModelRequest {
pub system: Option<String>,
pub messages: Vec<Message>,
pub tools: Vec<ToolSpec>,
pub max_tokens: u32,
pub temperature: Option<f32>,
pub provider_options: BTreeMap<String, Value>,
}Fields§
§system: Option<String>§messages: Vec<Message>§tools: Vec<ToolSpec>§max_tokens: u32§temperature: Option<f32>§provider_options: BTreeMap<String, Value>Provider-specific options, keyed by provider id (e.g. "anthropic",
"openai"). Adapters merge their own entry into the request body and
ignore the rest, so one agent definition can carry tuned options for
every provider it may fall back to.
Trait Implementations§
Source§impl Clone for ModelRequest
impl Clone for ModelRequest
Source§fn clone(&self) -> ModelRequest
fn clone(&self) -> ModelRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelRequest
impl Debug for ModelRequest
Source§impl Default for ModelRequest
impl Default for ModelRequest
Source§fn default() -> ModelRequest
fn default() -> ModelRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelRequest
impl RefUnwindSafe for ModelRequest
impl Send for ModelRequest
impl Sync for ModelRequest
impl Unpin for ModelRequest
impl UnsafeUnpin for ModelRequest
impl UnwindSafe for ModelRequest
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