pub struct Request {
pub project_id: String,
pub agent_name: String,
pub num_simulations: i32,
pub region: String,
pub scenario_group: Option<ScenarioGroup>,
pub concurrency: Option<i32>,
pub mode: i32,
pub background_noise: bool,
pub low_quality_microphone: bool,
pub packet_loss: bool,
pub ci: Option<Ci>,
pub sampling: Option<SamplingOptions>,
}Fields§
§project_id: String§agent_name: String§num_simulations: i32§region: String§scenario_group: Option<ScenarioGroup>When set, run these scenarios (loaded from a scenarios.yaml). When unset, generate num_simulations scenarios from the uploaded agent source.
concurrency: Option<i32>Maximum simulate jobs running in parallel for this run. Clamped to the project’s concurrency quota; 0/unset uses the server default.
mode: i32Conversation mode for every job in this run; unspecified = TEXT.
background_noise: boolImpairments applied to the simulated user’s audio; AUDIO mode only.
low_quality_microphone: bool§packet_loss: bool§ci: Option<Ci>§sampling: Option<SamplingOptions>Absent runs each scenario once and requires it to pass. Requires scenario_group. The run fails if any scenario fails; pass@k and pass^k report over scenarios and neither gates.
Implementations§
Source§impl Request
impl Request
Sourcepub fn concurrency(&self) -> i32
pub fn concurrency(&self) -> i32
Returns the value of concurrency, or the default value if concurrency is unset.
Sourcepub fn mode(&self) -> SimulationMode
pub fn mode(&self) -> SimulationMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: SimulationMode)
pub fn set_mode(&mut self, value: SimulationMode)
Sets mode to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
§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>,
Source§impl Message for Request
impl Message for Request
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.