Struct aws_sdk_lexmodelsv2::types::builders::AgentTurnResultBuilder
source · #[non_exhaustive]pub struct AgentTurnResultBuilder { /* private fields */ }Expand description
A builder for AgentTurnResult.
Implementations§
source§impl AgentTurnResultBuilder
impl AgentTurnResultBuilder
sourcepub fn expected_agent_prompt(self, input: impl Into<String>) -> Self
pub fn expected_agent_prompt(self, input: impl Into<String>) -> Self
The expected agent prompt for the agent turn in a test set execution.
This field is required.sourcepub fn set_expected_agent_prompt(self, input: Option<String>) -> Self
pub fn set_expected_agent_prompt(self, input: Option<String>) -> Self
The expected agent prompt for the agent turn in a test set execution.
sourcepub fn get_expected_agent_prompt(&self) -> &Option<String>
pub fn get_expected_agent_prompt(&self) -> &Option<String>
The expected agent prompt for the agent turn in a test set execution.
sourcepub fn actual_agent_prompt(self, input: impl Into<String>) -> Self
pub fn actual_agent_prompt(self, input: impl Into<String>) -> Self
The actual agent prompt for the agent turn in a test set execution.
sourcepub fn set_actual_agent_prompt(self, input: Option<String>) -> Self
pub fn set_actual_agent_prompt(self, input: Option<String>) -> Self
The actual agent prompt for the agent turn in a test set execution.
sourcepub fn get_actual_agent_prompt(&self) -> &Option<String>
pub fn get_actual_agent_prompt(&self) -> &Option<String>
The actual agent prompt for the agent turn in a test set execution.
sourcepub fn error_details(self, input: ExecutionErrorDetails) -> Self
pub fn error_details(self, input: ExecutionErrorDetails) -> Self
Details about an error in an execution of a test set.
sourcepub fn set_error_details(self, input: Option<ExecutionErrorDetails>) -> Self
pub fn set_error_details(self, input: Option<ExecutionErrorDetails>) -> Self
Details about an error in an execution of a test set.
sourcepub fn get_error_details(&self) -> &Option<ExecutionErrorDetails>
pub fn get_error_details(&self) -> &Option<ExecutionErrorDetails>
Details about an error in an execution of a test set.
sourcepub fn actual_elicited_slot(self, input: impl Into<String>) -> Self
pub fn actual_elicited_slot(self, input: impl Into<String>) -> Self
The actual elicited slot for the agent turn in a test set execution.
sourcepub fn set_actual_elicited_slot(self, input: Option<String>) -> Self
pub fn set_actual_elicited_slot(self, input: Option<String>) -> Self
The actual elicited slot for the agent turn in a test set execution.
sourcepub fn get_actual_elicited_slot(&self) -> &Option<String>
pub fn get_actual_elicited_slot(&self) -> &Option<String>
The actual elicited slot for the agent turn in a test set execution.
sourcepub fn actual_intent(self, input: impl Into<String>) -> Self
pub fn actual_intent(self, input: impl Into<String>) -> Self
The actual intent for the agent turn in a test set execution.
sourcepub fn set_actual_intent(self, input: Option<String>) -> Self
pub fn set_actual_intent(self, input: Option<String>) -> Self
The actual intent for the agent turn in a test set execution.
sourcepub fn get_actual_intent(&self) -> &Option<String>
pub fn get_actual_intent(&self) -> &Option<String>
The actual intent for the agent turn in a test set execution.
sourcepub fn build(self) -> Result<AgentTurnResult, BuildError>
pub fn build(self) -> Result<AgentTurnResult, BuildError>
Consumes the builder and constructs a AgentTurnResult.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AgentTurnResultBuilder
impl Clone for AgentTurnResultBuilder
source§fn clone(&self) -> AgentTurnResultBuilder
fn clone(&self) -> AgentTurnResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AgentTurnResultBuilder
impl Debug for AgentTurnResultBuilder
source§impl Default for AgentTurnResultBuilder
impl Default for AgentTurnResultBuilder
source§fn default() -> AgentTurnResultBuilder
fn default() -> AgentTurnResultBuilder
source§impl PartialEq for AgentTurnResultBuilder
impl PartialEq for AgentTurnResultBuilder
source§fn eq(&self, other: &AgentTurnResultBuilder) -> bool
fn eq(&self, other: &AgentTurnResultBuilder) -> bool
self and other values to be equal, and is used
by ==.