pub struct ModelRequestParameters {
pub tools: Vec<ToolDefinition>,
pub native_tools: Vec<NativeToolDefinition>,
pub output_schema: Option<Value>,
pub output_mode: Option<OutputMode>,
pub instructions: Vec<PreparedInstruction>,
pub thinking: Option<ThinkingSettings>,
pub allow_text_output: Option<bool>,
pub allow_image_output: Option<bool>,
pub http: HttpRequestOptions,
pub extra_body: Map<String, Value>,
pub metadata: Map<String, Value>,
}Expand description
Request parameters derived from tools, output schemas, and runtime policy.
Fields§
§tools: Vec<ToolDefinition>Tool definitions in provider-neutral JSON schema form.
native_tools: Vec<NativeToolDefinition>Provider-executed native tool definitions.
output_schema: Option<Value>Optional output schema.
output_mode: Option<OutputMode>Selected output mode.
instructions: Vec<PreparedInstruction>Prepared instruction fragments attached during request preparation.
thinking: Option<ThinkingSettings>Request-level thinking settings selected during request preparation.
allow_text_output: Option<bool>Allow text output.
allow_image_output: Option<bool>Allow image output.
http: HttpRequestOptionsRequest-level HTTP overrides for gateway, audit, and routing integrations.
extra_body: Map<String, Value>Provider-specific JSON object merged into the top-level request body.
metadata: Map<String, Value>Request metadata for replay, trace, and audit.
Trait Implementations§
Source§impl Clone for ModelRequestParameters
impl Clone for ModelRequestParameters
Source§fn clone(&self) -> ModelRequestParameters
fn clone(&self) -> ModelRequestParameters
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 ModelRequestParameters
impl Debug for ModelRequestParameters
Source§impl Default for ModelRequestParameters
impl Default for ModelRequestParameters
Source§fn default() -> ModelRequestParameters
fn default() -> ModelRequestParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelRequestParameters
impl<'de> Deserialize<'de> for ModelRequestParameters
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
impl Eq for ModelRequestParameters
Source§impl PartialEq for ModelRequestParameters
impl PartialEq for ModelRequestParameters
Source§impl Serialize for ModelRequestParameters
impl Serialize for ModelRequestParameters
impl StructuralPartialEq for ModelRequestParameters
Auto Trait Implementations§
impl Freeze for ModelRequestParameters
impl RefUnwindSafe for ModelRequestParameters
impl Send for ModelRequestParameters
impl Sync for ModelRequestParameters
impl Unpin for ModelRequestParameters
impl UnsafeUnpin for ModelRequestParameters
impl UnwindSafe for ModelRequestParameters
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