pub struct DialogueRequest {
pub text: String,
pub voices: Vec<DialogueVoice>,
pub model: Option<String>,
pub output_format: Option<String>,
pub seed: Option<i32>,
}Expand description
Request body sent to the QAI proxy for dialogue generation.
The proxy expects text (full script) + voices (speaker-to-voice mapping).
Fields§
§text: StringFull dialogue script (e.g. “Speaker1: Hello!\nSpeaker2: Hi there!”).
voices: Vec<DialogueVoice>Voice mappings — each speaker name mapped to a voice_id.
model: Option<String>Dialogue model.
output_format: Option<String>Output audio format.
seed: Option<i32>Seed for reproducible generation.
Implementations§
Source§impl DialogueRequest
impl DialogueRequest
Sourcepub fn from_turns(turns: Vec<DialogueTurn>, model: Option<String>) -> Self
pub fn from_turns(turns: Vec<DialogueTurn>, model: Option<String>) -> Self
Build a DialogueRequest from individual turns. Converts turns into the text + voices format the API expects.
Trait Implementations§
Source§impl Clone for DialogueRequest
impl Clone for DialogueRequest
Source§fn clone(&self) -> DialogueRequest
fn clone(&self) -> DialogueRequest
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 DialogueRequest
impl Debug for DialogueRequest
Source§impl Default for DialogueRequest
impl Default for DialogueRequest
Source§fn default() -> DialogueRequest
fn default() -> DialogueRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DialogueRequest
impl RefUnwindSafe for DialogueRequest
impl Send for DialogueRequest
impl Sync for DialogueRequest
impl Unpin for DialogueRequest
impl UnsafeUnpin for DialogueRequest
impl UnwindSafe for DialogueRequest
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