pub struct BatchRequest {
pub prompt: String,
pub config: Option<GenerationConfig>,
pub id: Option<String>,
}Expand description
A single request in a batch generation operation
Fields§
§prompt: StringThe prompt to generate text for
config: Option<GenerationConfig>Optional configuration (uses default if None)
id: Option<String>Optional identifier for tracking this request
Implementations§
Source§impl BatchRequest
impl BatchRequest
Sourcepub fn with_config(prompt: impl Into<String>, config: GenerationConfig) -> Self
pub fn with_config(prompt: impl Into<String>, config: GenerationConfig) -> Self
Create a new batch request with prompt and config
Trait Implementations§
Source§impl Clone for BatchRequest
impl Clone for BatchRequest
Source§fn clone(&self) -> BatchRequest
fn clone(&self) -> BatchRequest
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 BatchRequest
impl RefUnwindSafe for BatchRequest
impl Send for BatchRequest
impl Sync for BatchRequest
impl Unpin for BatchRequest
impl UnwindSafe for BatchRequest
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