#[non_exhaustive]pub struct AgentCreationConfig {
pub business: String,
pub default_language_code: String,
pub time_zone: String,
pub location: String,
/* private fields */
}engine-service only.Expand description
Configurations for generating a Dialogflow agent.
Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.business: StringName of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
default_language_code: StringRequired. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes.
time_zone: StringRequired. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.
location: StringAgent location for Agent creation, supported values: global/us/eu. If not provided, us Engine will create Agent using us-central-1 by default; eu Engine will create Agent using eu-west-1 by default.
Implementations§
Source§impl AgentCreationConfig
impl AgentCreationConfig
Sourcepub fn set_business<T: Into<String>>(self, v: T) -> Self
pub fn set_business<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_default_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_default_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of default_language_code.
§Example
let x = AgentCreationConfig::new().set_default_language_code("example");Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AgentCreationConfig
impl Clone for AgentCreationConfig
Source§fn clone(&self) -> AgentCreationConfig
fn clone(&self) -> AgentCreationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentCreationConfig
impl Debug for AgentCreationConfig
Source§impl Default for AgentCreationConfig
impl Default for AgentCreationConfig
Source§fn default() -> AgentCreationConfig
fn default() -> AgentCreationConfig
Source§impl Message for AgentCreationConfig
impl Message for AgentCreationConfig
Source§impl PartialEq for AgentCreationConfig
impl PartialEq for AgentCreationConfig
impl StructuralPartialEq for AgentCreationConfig
Auto Trait Implementations§
impl Freeze for AgentCreationConfig
impl RefUnwindSafe for AgentCreationConfig
impl Send for AgentCreationConfig
impl Sync for AgentCreationConfig
impl Unpin for AgentCreationConfig
impl UnsafeUnpin for AgentCreationConfig
impl UnwindSafe for AgentCreationConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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