Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileStore ¶
type ProfileStore struct {
// contains filtered or unexported fields
}
ProfileStore manages multiple Soul profiles.
func NewProfileStore ¶
func NewProfileStore() *ProfileStore
func (*ProfileStore) Get ¶
func (ps *ProfileStore) Get(userID string) *Soul
Get returns an existing profile or nil.
func (*ProfileStore) GetOrCreate ¶
func (ps *ProfileStore) GetOrCreate(userID string) *Soul
GetOrCreate returns the profile for a user, creating if needed.
type Soul ¶
type Soul struct {
UserID string `json:"user_id"`
Traits map[string]*Trait `json:"traits"` // key → Trait
// contains filtered or unexported fields
}
Soul aggregates patterns from memories into a user/agent profile.
func (*Soul) Observe ¶
Observe records a trait observation. If the trait exists, increments count; otherwise creates it.
Click to show internal directories.
Click to hide internal directories.