pub struct Synthesizer { /* private fields */ }Expand description
The Synthesizer agent — emergent collective intelligence.
Implementations§
Source§impl Synthesizer
impl Synthesizer
pub fn new(position: Position) -> Synthesizer
Sourcepub fn with_seed(position: Position, seed: u64) -> Synthesizer
pub fn with_seed(position: Position, seed: u64) -> Synthesizer
Create a synthesizer with a deterministic ID (for testing).
Sourcepub fn insights_produced(&self) -> u64
pub fn insights_produced(&self) -> u64
Total insights produced in lifetime.
Trait Implementations§
Source§impl Agent for Synthesizer
impl Agent for Synthesizer
Source§fn set_position(&mut self, position: Position)
fn set_position(&mut self, position: Position)
Set the agent’s position.
Source§fn agent_type(&self) -> &str
fn agent_type(&self) -> &str
The agent’s type name (for display and logging).
Source§fn tick(&mut self, substrate: &dyn Substrate) -> AgentAction
fn tick(&mut self, substrate: &dyn Substrate) -> AgentAction
Execute one tick of the agent’s lifecycle. Read more
Source§fn profile(&self) -> AgentProfile
fn profile(&self) -> AgentProfile
Build a profile describing this agent’s capabilities.
Source§fn export_vocabulary(&self) -> Option<Vec<u8>>
fn export_vocabulary(&self) -> Option<Vec<u8>>
Export this agent’s vocabulary as serialized bytes.
Returns None if the agent has no vocabulary to export.
Source§fn integrate_vocabulary(&mut self, _data: &[u8]) -> bool
fn integrate_vocabulary(&mut self, _data: &[u8]) -> bool
Integrate foreign vocabulary from serialized bytes.
Returns true if integration succeeded.
Source§fn evaluate_symbiosis(&self, _other: &AgentProfile) -> Option<SymbiosisEval>
fn evaluate_symbiosis(&self, _other: &AgentProfile) -> Option<SymbiosisEval>
Evaluate whether to absorb another agent as a symbiont.
Source§fn absorb_symbiont(&mut self, _profile: AgentProfile, _data: Vec<u8>) -> bool
fn absorb_symbiont(&mut self, _profile: AgentProfile, _data: Vec<u8>) -> bool
Absorb another agent’s profile and vocabulary data as a symbiont.
Returns true if absorption succeeded.
Source§fn permeability(&self) -> f64
fn permeability(&self) -> f64
Current boundary permeability (0.0 = rigid, 1.0 = fully dissolved).
Source§fn modulate_boundary(&mut self, _context: &BoundaryContext)
fn modulate_boundary(&mut self, _context: &BoundaryContext)
Adjust boundary permeability based on environmental context.
Source§fn externalize_vocabulary(&self) -> Vec<String>
fn externalize_vocabulary(&self) -> Vec<String>
Return vocabulary terms to externalize (reinforce in the substrate).
Source§fn internalize_vocabulary(&mut self, _terms: &[String])
fn internalize_vocabulary(&mut self, _terms: &[String])
Absorb nearby concept terms from the substrate.
Source§fn vocabulary_size(&self) -> usize
fn vocabulary_size(&self) -> usize
Return the size of this agent’s vocabulary (for metrics).
Source§impl Apoptose for Synthesizer
impl Apoptose for Synthesizer
Source§fn self_assess(&self) -> CellHealth
fn self_assess(&self) -> CellHealth
Evaluate own health and usefulness. Read more
Source§fn prepare_death_signal(&self) -> DeathSignal
fn prepare_death_signal(&self) -> DeathSignal
Package final state into a death signal before destruction. Read more
Source§fn should_die(&self) -> bool
fn should_die(&self) -> bool
Whether the agent should initiate death. Read more
Source§fn trigger_apoptosis(self) -> DeathSignalwhere
Self: Sized,
fn trigger_apoptosis(self) -> DeathSignalwhere
Self: Sized,
Initiate orderly self-destruction (for concrete types). Read more
Source§impl Digest for Synthesizer
impl Digest for Synthesizer
Source§type Input = String
type Input = String
The raw input to consume. Ownership is transferred — the input is destroyed.
Source§type Presentation = Vec<String>
type Presentation = Vec<String>
What is presented to other agents after digestion.
Source§fn engulf(&mut self, input: String) -> DigestionResult
fn engulf(&mut self, input: String) -> DigestionResult
Engulf: take ownership of input. Read more
Source§fn digest(&mut self, input: Self::Input) -> Self::Presentation
fn digest(&mut self, input: Self::Input) -> Self::Presentation
Run the full digestion cycle: engulf → lyse → present.
Source§impl Emerge for Synthesizer
impl Emerge for Synthesizer
Source§type EmergentBehavior = Vec<InsightData>
type EmergentBehavior = Vec<InsightData>
The collective behavior that emerges at quorum.
Source§fn signal_density(&self, substrate: &dyn Substrate) -> f64
fn signal_density(&self, substrate: &dyn Substrate) -> f64
Measure signal density in the local region. Read more
Source§fn quorum_threshold(&self) -> f64
fn quorum_threshold(&self) -> f64
The threshold for phase transition. Read more
Source§fn emergent_behavior(&self) -> Option<Vec<InsightData>>
fn emergent_behavior(&self) -> Option<Vec<InsightData>>
The emergent behavior that activates at quorum. Read more
Source§fn contribute(&self) -> Contribution
fn contribute(&self) -> Contribution
Contribute to a collective computation. Read more
Source§fn quorum_reached(&self, substrate: &dyn Substrate) -> bool
fn quorum_reached(&self, substrate: &dyn Substrate) -> bool
Whether quorum has been reached.
Source§impl Sense for Synthesizer
impl Sense for Synthesizer
Source§fn sense_radius(&self) -> f64
fn sense_radius(&self) -> f64
The radius within which this agent can sense signals.
Source§fn sense_position(&self) -> Position
fn sense_position(&self) -> Position
The position from which this agent senses.
Source§fn gradient(&self, substrate: &dyn Substrate) -> Vec<Gradient>
fn gradient(&self, substrate: &dyn Substrate) -> Vec<Gradient>
Compute the gradient — direction of increasing signal strength. Read more
Source§fn orient(&self, _gradients: &[Gradient]) -> Orientation
fn orient(&self, _gradients: &[Gradient]) -> Orientation
Determine next orientation based on sensed gradients. Read more
Source§impl SerializableAgent for Synthesizer
impl SerializableAgent for Synthesizer
Source§fn export_state(&self) -> SerializedAgent
fn export_state(&self) -> SerializedAgent
Export the agent’s state for serialization.
Source§fn from_state(state: &SerializedAgent) -> Option<Synthesizer>
fn from_state(state: &SerializedAgent) -> Option<Synthesizer>
Create an agent from serialized state.
Auto Trait Implementations§
impl Freeze for Synthesizer
impl RefUnwindSafe for Synthesizer
impl Send for Synthesizer
impl Sync for Synthesizer
impl Unpin for Synthesizer
impl UnwindSafe for Synthesizer
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