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 ==.impl StructuralPartialEq for AgentTurnResultBuilder
Auto Trait Implementations§
impl Freeze for AgentTurnResultBuilder
impl RefUnwindSafe for AgentTurnResultBuilder
impl Send for AgentTurnResultBuilder
impl Sync for AgentTurnResultBuilder
impl Unpin for AgentTurnResultBuilder
impl UnwindSafe for AgentTurnResultBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more