#[non_exhaustive]pub struct AgentCoachingContext {
pub overarching_guidance: String,
pub instructions: Vec<AgentCoachingInstruction>,
pub version: String,
pub output_language_code: String,
/* private fields */
}Available on crate features
conversations or generator-evaluations or generators only.Expand description
Agent Coaching context that customer can configure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.overarching_guidance: StringOptional. The overarching guidance for the agent coaching. This should be set only for v1.5 and later versions.
instructions: Vec<AgentCoachingInstruction>Optional. Customized instructions for agent coaching.
version: StringOptional. Version of the feature. If not set, default to latest version. Current candidates are [“1.2”].
output_language_code: StringOptional. Output language code.
Implementations§
Source§impl AgentCoachingContext
impl AgentCoachingContext
pub fn new() -> Self
Sourcepub fn set_overarching_guidance<T: Into<String>>(self, v: T) -> Self
pub fn set_overarching_guidance<T: Into<String>>(self, v: T) -> Self
Sets the value of overarching_guidance.
§Example
ⓘ
let x = AgentCoachingContext::new().set_overarching_guidance("example");Sourcepub fn set_instructions<T, V>(self, v: T) -> Self
pub fn set_instructions<T, V>(self, v: T) -> Self
Sets the value of instructions.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::AgentCoachingInstruction;
let x = AgentCoachingContext::new()
.set_instructions([
AgentCoachingInstruction::default()/* use setters */,
AgentCoachingInstruction::default()/* use (different) setters */,
]);Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_output_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_output_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of output_language_code.
§Example
ⓘ
let x = AgentCoachingContext::new().set_output_language_code("example");Trait Implementations§
Source§impl Clone for AgentCoachingContext
impl Clone for AgentCoachingContext
Source§fn clone(&self) -> AgentCoachingContext
fn clone(&self) -> AgentCoachingContext
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 AgentCoachingContext
impl Debug for AgentCoachingContext
Source§impl Default for AgentCoachingContext
impl Default for AgentCoachingContext
Source§fn default() -> AgentCoachingContext
fn default() -> AgentCoachingContext
Returns the “default value” for a type. Read more
Source§impl Message for AgentCoachingContext
impl Message for AgentCoachingContext
Source§impl PartialEq for AgentCoachingContext
impl PartialEq for AgentCoachingContext
impl StructuralPartialEq for AgentCoachingContext
Auto Trait Implementations§
impl Freeze for AgentCoachingContext
impl RefUnwindSafe for AgentCoachingContext
impl Send for AgentCoachingContext
impl Sync for AgentCoachingContext
impl Unpin for AgentCoachingContext
impl UnsafeUnpin for AgentCoachingContext
impl UnwindSafe for AgentCoachingContext
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