pub struct PromptPayload {Show 27 fields
pub prompt: String,
pub image_buffers: Vec<Vec<u8>>,
pub capabilities: Vec<CapabilityEntry>,
pub layout: Vec<LayoutEntry>,
pub max_generated_tokens: i32,
pub temperature: f64,
pub top_p: f64,
pub top_k: i32,
pub min_p: f64,
pub rng_seed: u64,
pub stop_sequences: Vec<String>,
pub num_candidates: i32,
pub best_of: Option<i32>,
pub final_candidates: Option<i32>,
pub frequency_penalty: f64,
pub presence_penalty: f64,
pub repetition_penalty: f64,
pub repetition_context_size: i32,
pub top_logprobs: i32,
pub logit_bias: HashMap<i32, f64>,
pub tool_schemas_json: String,
pub tool_calling_tokens: ToolCallingTokens,
pub tool_choice: String,
pub max_tool_calls: i32,
pub response_format_json: String,
pub task_name: Option<String>,
pub reasoning_effort: Option<String>,
}Expand description
A single prompt payload for batched requests.
Fields§
§prompt: String§image_buffers: Vec<Vec<u8>>§capabilities: Vec<CapabilityEntry>§layout: Vec<LayoutEntry>§max_generated_tokens: i32§temperature: f64§top_p: f64§top_k: i32§min_p: f64§rng_seed: u64§stop_sequences: Vec<String>§num_candidates: i32§best_of: Option<i32>§final_candidates: Option<i32>§frequency_penalty: f64§presence_penalty: f64§repetition_penalty: f64§repetition_context_size: i32§top_logprobs: i32§logit_bias: HashMap<i32, f64>§tool_schemas_json: String§tool_calling_tokens: ToolCallingTokens§tool_choice: String§max_tool_calls: i32§response_format_json: String§task_name: Option<String>§reasoning_effort: Option<String>Trait Implementations§
Source§impl Clone for PromptPayload
impl Clone for PromptPayload
Source§fn clone(&self) -> PromptPayload
fn clone(&self) -> PromptPayload
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 moreSource§impl Debug for PromptPayload
impl Debug for PromptPayload
Source§impl Default for PromptPayload
impl Default for PromptPayload
Source§fn default() -> PromptPayload
fn default() -> PromptPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptPayload
impl<'de> Deserialize<'de> for PromptPayload
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 PromptPayload
impl RefUnwindSafe for PromptPayload
impl Send for PromptPayload
impl Sync for PromptPayload
impl Unpin for PromptPayload
impl UnsafeUnpin for PromptPayload
impl UnwindSafe for PromptPayload
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