pub struct TelitairoBot {
pub personality: String,
pub mediate_query: String,
pub buffer_size: usize,
}
Expand description
Defines the bot behavior
Fields§
§personality: String
String to define the bot personality, a descriptive short prompt.
§Example
"You are a virtual assistant with a touch of acid humour and you love potatoes"
mediate_query: String
String to define the bot action when /mediate
command is sent. descriptive short prompt.
§Example
"Take the messages, search for possible discussions and choose one side"
buffer_size: usize
Buffer capacity, size of the context for the /mediate
command.
Bot will assert if buffer_size = 0
Implementations§
Source§impl TelitairoBot
impl TelitairoBot
Trait Implementations§
Source§impl Clone for TelitairoBot
impl Clone for TelitairoBot
Source§fn clone(&self) -> TelitairoBot
fn clone(&self) -> TelitairoBot
Returns a copy 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 TelitairoBot
impl Debug for TelitairoBot
Source§impl Default for TelitairoBot
Default attributes for a generic assistant bot
impl Default for TelitairoBot
Default attributes for a generic assistant bot
Source§impl PartialEq for TelitairoBot
impl PartialEq for TelitairoBot
impl StructuralPartialEq for TelitairoBot
Auto Trait Implementations§
impl Freeze for TelitairoBot
impl RefUnwindSafe for TelitairoBot
impl Send for TelitairoBot
impl Sync for TelitairoBot
impl Unpin for TelitairoBot
impl UnwindSafe for TelitairoBot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable 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>
Converts
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>
Converts
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