pub struct PersonalityPrompt { /* private fields */ }Expand description
Personality prompt state prepared for one provider turn.
Implementations§
Source§impl PersonalityPrompt
impl PersonalityPrompt
Sourcepub fn active(prompt: String, changed: bool) -> Self
pub fn active(prompt: String, changed: bool) -> Self
Creates one active personality, marking whether delta-mode providers must receive its body as an update.
Trait Implementations§
Source§impl Clone for PersonalityPrompt
impl Clone for PersonalityPrompt
Source§fn clone(&self) -> PersonalityPrompt
fn clone(&self) -> PersonalityPrompt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PersonalityPrompt
impl Debug for PersonalityPrompt
Source§impl Default for PersonalityPrompt
impl Default for PersonalityPrompt
Source§fn default() -> PersonalityPrompt
fn default() -> PersonalityPrompt
Returns the “default value” for a type. Read more
impl Eq for PersonalityPrompt
Source§impl PartialEq for PersonalityPrompt
impl PartialEq for PersonalityPrompt
impl StructuralPartialEq for PersonalityPrompt
Auto Trait Implementations§
impl Freeze for PersonalityPrompt
impl RefUnwindSafe for PersonalityPrompt
impl Send for PersonalityPrompt
impl Sync for PersonalityPrompt
impl Unpin for PersonalityPrompt
impl UnsafeUnpin for PersonalityPrompt
impl UnwindSafe for PersonalityPrompt
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.