pub struct RecallTurn {
pub session_id: String,
pub task_id: String,
pub user_text: Option<String>,
pub owner: bool,
pub personal: bool,
pub visibility: ChannelVisibility,
pub channel_id: Option<String>,
pub sender_id: Option<String>,
pub allowed: bool,
pub depth: usize,
pub project: Option<ProjectRef>,
}Expand description
What recall knows about one turn, as the host decided it.
Fields§
§session_id: String§task_id: String§user_text: Option<String>The user’s message: recall is scoped to the current request. None
recalls for the latest user message of the request instead.
owner: boolThe owner wrote the message.
personal: boolThe owner wrote it in a private chat: personal memory (identity, goals, profile, people) may be shown.
visibility: ChannelVisibility§channel_id: Option<String>§sender_id: Option<String>The speaker’s platform id, to recognise a known person.
allowed: boolThe turn may read memory at all.
depth: usizeSub-agent depth: the core profile is for the top-level run only.
project: Option<ProjectRef>The project the turn works in: its notes are shown after the rest of
the block (see crate::project).
Trait Implementations§
Source§impl Clone for RecallTurn
impl Clone for RecallTurn
Source§impl Debug for RecallTurn
impl Debug for RecallTurn
impl Eq for RecallTurn
Source§impl PartialEq for RecallTurn
impl PartialEq for RecallTurn
impl StructuralPartialEq for RecallTurn
Auto Trait Implementations§
impl Forget for RecallTurn
impl Freeze for RecallTurn
impl Move for RecallTurn
impl RefUnwindSafe for RecallTurn
impl Send for RecallTurnwhere
RawVecInner: Send,
impl Sync for RecallTurnwhere
RawVecInner: Sync,
impl Unpin for RecallTurn
impl UnsafeUnpin for RecallTurn
impl UnwindSafe for RecallTurnwhere
RawVecInner: UnwindSafe,
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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