pub struct RequestOptions {
pub top_p: Option<f64>,
pub seed: Option<i64>,
pub stop: Option<Vec<String>>,
pub parallel_tool_calls: Option<bool>,
pub tool_choice: Option<ToolChoice>,
pub extra_body: Value,
}Expand description
The optional knobs [provider] exposes: what we want sent. The wire profile is the
other half — how this backend spells it, and whether it understands the field at all.
Every field is optional and an unset one is never sent, so a backend that rejects unknown
fields is never handed one it did not ask for. [provider] extra_body is the escape hatch
for the rest.
Fields§
§top_p: Option<f64>§seed: Option<i64>§stop: Option<Vec<String>>§parallel_tool_calls: Option<bool>§tool_choice: Option<ToolChoice>§extra_body: ValueMerged into the body after every standing field and before a per-turn patch.
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Source§impl Debug for RequestOptions
impl Debug for RequestOptions
Source§impl Default for RequestOptions
impl Default for RequestOptions
Source§impl PartialEq for RequestOptions
impl PartialEq for RequestOptions
impl StructuralPartialEq for RequestOptions
Auto Trait Implementations§
impl Forget for RequestOptions
impl Freeze for RequestOptionswhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for RequestOptions
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for RequestOptions
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