class

AtomSpace::CognitiveKernel

Inherits Reference < Object

Cognitive kernel for Agent-Zero Genesis system with performance optimizations

Constructors

new(tensor_shape : Array(Int32), attention_weight : Float64 = 0.5, meta_level : Int32 = 0, cognitive_operation : String | Nil = nil)
new(atomspace : AtomSpace, tensor_shape : Array(Int32), attention_weight : Float64, meta_level : Int32 = 0, cognitive_operation : String | Nil = nil)

Instance methods

add_concept_node(name : String, tv : TruthValue = TruthValue::DEFAULT_TV) : Atom

Convenience methods for AtomSpace operations

add_predicate_node(name : String, tv : TruthValue = TruthValue::DEFAULT_TV) : Atom
atomspace
atomspace=(atomspace : AtomSpace)
attention_weight
attention_weight=(attention_weight : Float64)
cache_stats

Get cache statistics

cognitive_operation
cognitive_operation=(cognitive_operation : String | Nil)
cognitive_tensor_field_encoding(operation : String) : Array(Float32)

Cognitive operation-specific encoding

hypergraph_state

Get hypergraph state representation

hypergraph_tensor_encoding

Create hypergraph-aware tensor encoding with caching

load_hypergraph_state(storage : HypergraphStateStorageNode) : Bool

Load hypergraph state from storage

meta_level
meta_level=(meta_level : Int32)
performance_metrics

Get performance metrics for monitoring

store_hypergraph_state(storage : HypergraphStateStorageNode) : Bool

Store hypergraph state to storage

tensor_field_encoding(encoding_type : String = "prime", include_attention : Bool = true, include_meta_level : Bool = false, normalization : String = "none") : Array(Float32)

Optimized tensor field encoding with caching and SIMD operations

tensor_shape
tensor_shape=(tensor_shape : Array(Int32))
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

Nested types