Documentation
¶
Index ¶
- Variables
- type BrainLite
- func (b *BrainLite) ClearMemory()
- func (b *BrainLite) DeleteMemory(key any)
- func (b *BrainLite) Entry() error
- func (b *BrainLite) EntryWithMemory(keysAndValues ...interface{}) error
- func (b *BrainLite) ExistMemory(key any) bool
- func (b *BrainLite) ForceSleep()
- func (b *BrainLite) GetMemory(key any) any
- func (b *BrainLite) GetState() core.BrainState
- func (b *BrainLite) SetMemory(keysAndValues ...interface{}) error
- func (b *BrainLite) Shutdown()
- func (b *BrainLite) TrigLinks(links ...core.Link) error
- func (b *BrainLite) Wait()
- type BrainMaintainer
- type BrainMemory
- type NeuronRunner
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var AtuiPaJV = kYkrKA()
Functions ¶
This section is empty.
Types ¶
type BrainLite ¶
type BrainLite struct {
// brain memories
BrainMemory
BrainMaintainer
// contains filtered or unexported fields
}
func BuildMultiLangBrain ¶
func BuildMultiLangBrain(blueprint core.MultiLangBlueprint, withOpts ...Option) *BrainLite
func (*BrainLite) ClearMemory ¶
func (b *BrainLite) ClearMemory()
func (*BrainLite) DeleteMemory ¶
func (*BrainLite) EntryWithMemory ¶
func (*BrainLite) ExistMemory ¶
func (*BrainLite) ForceSleep ¶
func (b *BrainLite) ForceSleep()
func (*BrainLite) GetState ¶
func (b *BrainLite) GetState() core.BrainState
type BrainMaintainer ¶
type BrainMaintainer struct {
NeuronRunner
// contains filtered or unexported fields
}
type BrainMemory ¶
type BrainMemory struct {
// contains filtered or unexported fields
}
func (*BrainMemory) Clear ¶
func (m *BrainMemory) Clear() error
func (*BrainMemory) Close ¶
func (m *BrainMemory) Close() error
func (*BrainMemory) Del ¶
func (m *BrainMemory) Del(key any) error
func (*BrainMemory) Init ¶
func (m *BrainMemory) Init() error
func (*BrainMemory) Set ¶
func (m *BrainMemory) Set(key, value any) error
type NeuronRunner ¶
type NeuronRunner struct {
// contains filtered or unexported fields
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures a BrainLite in build.
func WithLoggerLevel ¶
WithLoggerLevel sets the default logger with specific level
func WithNeuronQueueLen ¶
WithNeuronQueueLen sets the neuron process queue length
func WithNeuronWorkerNum ¶
WithNeuronWorkerNum sets the neuron process worker number
Click to show internal directories.
Click to hide internal directories.