pub struct ThinkingChain {
pub steps: Vec<ThoughtStep>,
pub max_steps: usize,
pub next_thought_needed: bool,
}Fields§
§steps: Vec<ThoughtStep>§max_steps: usize§next_thought_needed: boolImplementations§
Source§impl ThinkingChain
impl ThinkingChain
pub fn new(max_steps: usize) -> Self
Sourcepub fn add_step(
&mut self,
content: String,
is_revision: bool,
revises: Option<usize>,
)
pub fn add_step( &mut self, content: String, is_revision: bool, revises: Option<usize>, )
Appends a new thought to the sequence.
Sourcepub fn brainstorm(
&mut self,
reader: &MicroscopeReader,
config: &Config,
initial_query: &str,
)
pub fn brainstorm( &mut self, reader: &MicroscopeReader, config: &Config, initial_query: &str, )
Evaluates the Hebbian field to determine the next logical memory block.
pub fn display(&self)
Auto Trait Implementations§
impl Freeze for ThinkingChain
impl RefUnwindSafe for ThinkingChain
impl Send for ThinkingChain
impl Sync for ThinkingChain
impl Unpin for ThinkingChain
impl UnsafeUnpin for ThinkingChain
impl UnwindSafe for ThinkingChain
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> 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