Raymond Maarloeve
Loading...
Searching...
No Matches
ObtainedMemory Class Reference

Represents a memory obtained by an NPC in the decision-making system. Each memory has a string identifier and parameters that indicates its importance, recency and relevance. More...

Public Member Functions

ObtainedMemoryDTO ToDTO ()
 Returns an ObtainedMemoryDTO object for use in LLM inference Weight will be rounded to integer for better LLM inference.
 
override string ToString ()
 ToString override used for pretty printing.
 

Public Attributes

string memory
 The unique identifier for the memory, such as "saw a predator", "found food", etc.
 
float recency
 Recency of this memory (0-10)
 
float relevance
 Relevance of this memory (0-10)
 
float importance
 Importance from this memory (0-10)
 
float multiplier = 1f
 Multiplier used when calculating Weight, will be scaled every in-game hour by NPC::DecayMemories
 

Properties

float Weight [get]
 

Detailed Description

Represents a memory obtained by an NPC in the decision-making system. Each memory has a string identifier and parameters that indicates its importance, recency and relevance.

Member Function Documentation

◆ ToDTO()

ObtainedMemoryDTO ObtainedMemory.ToDTO ( )

Returns an ObtainedMemoryDTO object for use in LLM inference Weight will be rounded to integer for better LLM inference.

Returns
ObtainedMemoryDTO

◆ ToString()

override string ObtainedMemory.ToString ( )

ToString override used for pretty printing.

Returns
A pretty print representation of the ObtainedMemory object.

Member Data Documentation

◆ importance

float ObtainedMemory.importance

Importance from this memory (0-10)

◆ memory

string ObtainedMemory.memory

The unique identifier for the memory, such as "saw a predator", "found food", etc.

◆ multiplier

float ObtainedMemory.multiplier = 1f

Multiplier used when calculating Weight, will be scaled every in-game hour by NPC::DecayMemories

◆ recency

float ObtainedMemory.recency

Recency of this memory (0-10)

◆ relevance

float ObtainedMemory.relevance

Relevance of this memory (0-10)

Property Documentation

◆ Weight

float ObtainedMemory.Weight
get

The documentation for this class was generated from the following file: