Struct google_api_proto::google::cloud::dialogflow::cx::v3beta1::Example
source · pub struct Example {
pub name: String,
pub playbook_input: Option<PlaybookInput>,
pub playbook_output: Option<PlaybookOutput>,
pub actions: Vec<Action>,
pub display_name: String,
pub description: String,
pub token_count: i64,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub conversation_state: i32,
pub language_code: String,
}
Expand description
Example represents a sample execution of the playbook in the conversation.
An example consists of a list of ordered actions performed by end user or Dialogflow agent according the playbook instructions to fulfill the task.
Fields§
§name: String
The unique identifier of the playbook example.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>/examples/<Example ID>
.
playbook_input: Option<PlaybookInput>
Optional. The input to the playbook in the example.
playbook_output: Option<PlaybookOutput>
Optional. The output of the playbook in the example.
actions: Vec<Action>
Required. The ordered list of actions performed by the end user and the Dialogflow agent.
display_name: String
Required. The display name of the example.
description: String
Optional. The high level concise description of the example. The max number of characters is 200.
token_count: i64
Output only. Estimated number of tokes current example takes when sent to the LLM.
create_time: Option<Timestamp>
Output only. The timestamp of initial example creation.
update_time: Option<Timestamp>
Output only. Last time the example was updated.
conversation_state: i32
Required. Example’s output state.
language_code: String
Optional. The language code of the example. If not specified, the agent’s default language is used. Note: languages must be enabled in the agent before they can be used.
Implementations§
source§impl Example
impl Example
sourcepub fn conversation_state(&self) -> OutputState
pub fn conversation_state(&self) -> OutputState
Returns the enum value of conversation_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_conversation_state(&mut self, value: OutputState)
pub fn set_conversation_state(&mut self, value: OutputState)
Sets conversation_state
to the provided enum value.
Trait Implementations§
source§impl Message for Example
impl Message for Example
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
.source§impl PartialEq for Example
impl PartialEq for Example
impl StructuralPartialEq for Example
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnwindSafe for Example
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request