pub struct NormalizedModelRequestDraft {
pub provider: String,
pub model: String,
pub system_instructions: Option<String>,
pub messages: Vec<Message>,
pub visible_tools: Vec<Tool>,
pub executable_tool_names: Vec<String>,
pub generation_options: NormalizedGenerationOptions,
}Expand description
Request-local, provider-independent draft exposed to before_model_request.
executable_tool_names are stable references into the immutable registry
snapshot captured while constructing this draft. The runtime resolves them
back to executable implementations only after the replacement is validated.
Fields§
§provider: String§model: String§system_instructions: Option<String>§messages: Vec<Message>§visible_tools: Vec<Tool>§executable_tool_names: Vec<String>§generation_options: NormalizedGenerationOptionsImplementations§
Trait Implementations§
Source§impl Clone for NormalizedModelRequestDraft
impl Clone for NormalizedModelRequestDraft
Source§fn clone(&self) -> NormalizedModelRequestDraft
fn clone(&self) -> NormalizedModelRequestDraft
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 NormalizedModelRequestDraft
impl Debug for NormalizedModelRequestDraft
Source§impl<'de> Deserialize<'de> for NormalizedModelRequestDraft
impl<'de> Deserialize<'de> for NormalizedModelRequestDraft
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 NormalizedModelRequestDraft
impl RefUnwindSafe for NormalizedModelRequestDraft
impl Send for NormalizedModelRequestDraft
impl Sync for NormalizedModelRequestDraft
impl Unpin for NormalizedModelRequestDraft
impl UnsafeUnpin for NormalizedModelRequestDraft
impl UnwindSafe for NormalizedModelRequestDraft
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