Struct google_api_proto::google::cloud::dialogflow::cx::v3::Agent
source · pub struct Agent {Show 20 fields
pub name: String,
pub display_name: String,
pub default_language_code: String,
pub supported_language_codes: Vec<String>,
pub time_zone: String,
pub description: String,
pub avatar_uri: String,
pub speech_to_text_settings: Option<SpeechToTextSettings>,
pub start_flow: String,
pub security_settings: String,
pub enable_stackdriver_logging: bool,
pub enable_spell_correction: bool,
pub enable_multi_language_training: bool,
pub locked: bool,
pub advanced_settings: Option<AdvancedSettings>,
pub git_integration_settings: Option<GitIntegrationSettings>,
pub text_to_speech_settings: Option<TextToSpeechSettings>,
pub gen_app_builder_settings: Option<GenAppBuilderSettings>,
pub answer_feedback_settings: Option<AnswerFeedbackSettings>,
pub personalization_settings: Option<PersonalizationSettings>,
}
Expand description
Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way.
After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] and so on to manage the conversation flows.
Fields§
§name: String
The unique identifier of the agent.
Required for the
[Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
method.
[Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
populates the name automatically.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>
.
display_name: String
Required. The human-readable name of the agent, unique within the location.
default_language_code: String
Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
supported_language_codes: Vec<String>
The list of all languages supported by the agent (except for the
default_language_code
).
time_zone: String
Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.
description: String
The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
avatar_uri: String
The URI of the agent’s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.
speech_to_text_settings: Option<SpeechToTextSettings>
Speech recognition related settings.
start_flow: String
Immutable. Name of the start flow in this agent. A start flow will be
automatically created when the agent is created, and can only be deleted by
deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>
.
security_settings: String
Name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>
.
enable_stackdriver_logging: bool
Indicates if stackdriver logging is enabled for the agent. Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings] instead.
enable_spell_correction: bool
Indicates if automatic spell correction is enabled in detect intent requests.
enable_multi_language_training: bool
Optional. Enable training multi-lingual models for this agent. These models will be trained on all the languages supported by the agent.
locked: bool
Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [RestoreAgent][].
advanced_settings: Option<AdvancedSettings>
Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
git_integration_settings: Option<GitIntegrationSettings>
Git integration settings for this agent.
text_to_speech_settings: Option<TextToSpeechSettings>
Settings on instructing the speech synthesizer on how to generate the output audio content.
gen_app_builder_settings: Option<GenAppBuilderSettings>
Gen App Builder-related agent-level settings.
answer_feedback_settings: Option<AnswerFeedbackSettings>
Optional. Answer feedback collection settings.
personalization_settings: Option<PersonalizationSettings>
Optional. Settings for end user personalization.
Trait Implementations§
source§impl Message for Agent
impl Message for Agent
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 Agent
impl PartialEq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
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