pub struct RequestProfile {
pub input_tokens: u32,
pub max_output_tokens: u32,
pub uses_tools: bool,
pub has_vision: bool,
pub has_system_prompt: bool,
}Expand description
Characteristics of a request used for optimization.
Fields§
§input_tokens: u32Estimated input tokens.
max_output_tokens: u32Requested max output tokens.
uses_tools: boolWhether the request uses tool/function calling.
has_vision: boolWhether the request contains images.
has_system_prompt: boolWhether the request has a system prompt.
Trait Implementations§
Source§impl Clone for RequestProfile
impl Clone for RequestProfile
Source§fn clone(&self) -> RequestProfile
fn clone(&self) -> RequestProfile
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 moreAuto Trait Implementations§
impl Freeze for RequestProfile
impl RefUnwindSafe for RequestProfile
impl Send for RequestProfile
impl Sync for RequestProfile
impl Unpin for RequestProfile
impl UnsafeUnpin for RequestProfile
impl UnwindSafe for RequestProfile
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