pub struct UniversalSolver {
pub config: SolverConfig,
}Expand description
The universal solver itself. See module docs for the 11-step loop.
Fields§
§config: SolverConfigImplementations§
Source§impl UniversalSolver
impl UniversalSolver
pub fn solve_with_intent_cache( &self, prompt: &str, intent_cache: &mut IntentFormalizationCache, ) -> SymbolicAnswer
Source§impl UniversalSolver
impl UniversalSolver
Sourcepub const fn new(config: SolverConfig) -> Self
pub const fn new(config: SolverConfig) -> Self
Construct a solver with an explicit configuration.
Sourcepub fn solve(&self, prompt: &str) -> SymbolicAnswer
pub fn solve(&self, prompt: &str) -> SymbolicAnswer
Run the universal loop against a single user impulse and return the
projected SymbolicAnswer. Every step is recorded in the in-process
append-only log so the user-facing answer is, by construction, a
projection of an inspectable trace.
Sourcepub fn solve_with_history(
&self,
prompt: &str,
history: &[ConversationTurn],
) -> SymbolicAnswer
pub fn solve_with_history( &self, prompt: &str, history: &[ConversationTurn], ) -> SymbolicAnswer
Run the universal loop with conversational context. Each prior turn is
appended to the event log as prior_turn:user or prior_turn:assistant
before the current impulse, so memory-recall handlers can search the
log instead of holding implicit state.
pub fn solve_with_probability_store( &self, prompt: &str, probability_store: &ProbabilityStore, ) -> SymbolicAnswer
pub fn solve_with_history_and_probability_store( &self, prompt: &str, history: &[ConversationTurn], probability_store: &ProbabilityStore, ) -> SymbolicAnswer
Trait Implementations§
Source§impl Clone for UniversalSolver
impl Clone for UniversalSolver
Source§fn clone(&self) -> UniversalSolver
fn clone(&self) -> UniversalSolver
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 moreimpl Copy for UniversalSolver
Source§impl Debug for UniversalSolver
impl Debug for UniversalSolver
Auto Trait Implementations§
impl Freeze for UniversalSolver
impl RefUnwindSafe for UniversalSolver
impl Send for UniversalSolver
impl Sync for UniversalSolver
impl Unpin for UniversalSolver
impl UnsafeUnpin for UniversalSolver
impl UnwindSafe for UniversalSolver
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