OmegaBrain

Struct OmegaBrain 

Source
pub struct OmegaBrain { /* private fields */ }
Expand description

The unified Omega Brain

Integrates all cognitive components into a single coherent system that processes information in a brain-like manner.

Implementations§

Source§

impl OmegaBrain

Source

pub fn new() -> Self

Create a new Omega Brain with default configuration

Source

pub fn with_config(config: BrainConfig) -> Self

Create with custom configuration

Source

pub fn process(&self, input: &[f64]) -> Result<ProcessingResult>

Process input through the brain

This is the main entry point for cognitive processing. Input flows through: Neural → Attention → Consciousness → Memory → Output

Source

pub fn state(&self) -> BrainState

Get current brain state

Source

pub fn metrics(&self) -> BrainMetrics

Get brain metrics

Source

pub fn sleep(&self) -> Result<()>

Enter sleep mode

Source

pub fn wake(&self) -> Result<()>

Wake up from sleep

Source

pub fn consolidate_memories(&self) -> Result<usize>

Force memory consolidation

Source

pub fn think_about(&self, topic: &[f64]) -> Result<Vec<f64>>

Think about a specific topic (directed cognition)

Source

pub fn recall(&self, cue: &[f64]) -> Result<Option<Vec<f64>>>

Recall a memory

Source

pub fn remember(&self, content: &[f64], importance: f64) -> Result<()>

Store a memory

Source

pub fn consciousness_level(&self) -> f64

Get current consciousness level

Source

pub fn phi(&self) -> f64

Get IIT Phi value

Source

pub fn is_dreaming(&self) -> bool

Check if brain is dreaming

Source

pub fn self_state(&self) -> Vec<f64>

Get self-model state

Source

pub fn activate(&self)

Activate the brain

Source

pub fn deactivate(&self)

Deactivate the brain

Source

pub fn is_active(&self) -> bool

Check if brain is active

Source

pub fn config(&self) -> &BrainConfig

Get brain configuration

Source

pub fn reset(&self)

Reset the brain to initial state

Trait Implementations§

Source§

impl Default for OmegaBrain

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.