pub struct ConversationalAiConfig {
pub enabled: bool,
pub default_language: String,
pub supported_languages: Vec<String>,
pub auto_detect_language: bool,
pub escalation_confidence_threshold: f64,
pub max_conversation_turns: usize,
pub conversation_timeout_secs: u64,
pub analytics_enabled: bool,
pub knowledge_base_tool: Option<String>,
}Expand description
Conversational AI agent builder configuration ([conversational_ai] section).
Status: Reserved for future use. This configuration is parsed but not yet
consumed by the runtime. Setting enabled = true will produce a startup warning.
Fields§
§enabled: boolEnable conversational AI features. Default: false.
default_language: StringDefault language for conversations (BCP-47 tag). Default: “en”.
supported_languages: Vec<String>Supported languages for conversations. Default: [en, de, fr, it].
auto_detect_language: boolAutomatically detect user language from message content. Default: true.
escalation_confidence_threshold: f64Intent confidence below this threshold triggers escalation. Default: 0.3.
max_conversation_turns: usizeMaximum conversation turns before auto-ending. Default: 50.
conversation_timeout_secs: u64Conversation timeout in seconds (inactivity). Default: 1800.
analytics_enabled: boolEnable conversation analytics tracking. Default: false (privacy-by-default).
knowledge_base_tool: Option<String>Optional tool name for RAG-based knowledge base lookup during conversations.
Implementations§
Source§impl ConversationalAiConfig
impl ConversationalAiConfig
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Returns true when the feature is disabled (the default).
Used by #[serde(skip_serializing_if)] to omit the entire
[conversational_ai] section from newly-generated config files,
avoiding user confusion over an undocumented / experimental section.
Trait Implementations§
Source§impl Clone for ConversationalAiConfig
impl Clone for ConversationalAiConfig
Source§fn clone(&self) -> ConversationalAiConfig
fn clone(&self) -> ConversationalAiConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConversationalAiConfig
impl Debug for ConversationalAiConfig
Source§impl Default for ConversationalAiConfig
impl Default for ConversationalAiConfig
Source§impl<'de> Deserialize<'de> for ConversationalAiConfig
impl<'de> Deserialize<'de> for ConversationalAiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ConversationalAiConfig
impl JsonSchema for ConversationalAiConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ConversationalAiConfig
impl RefUnwindSafe for ConversationalAiConfig
impl Send for ConversationalAiConfig
impl Sync for ConversationalAiConfig
impl Unpin for ConversationalAiConfig
impl UnsafeUnpin for ConversationalAiConfig
impl UnwindSafe for ConversationalAiConfig
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§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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