![]() |
Raymond Maarloeve
|
Decision-making system for NPCs that uses a Large Language Model (LLM) to determine the next action based on the current environment and NPC state. This system interacts with the LLMServer to request decisions and processes the responses to guide NPC behavior. More...
Public Member Functions | |
void | Setup (NPC npc) |
Sets up the decision-making system with the provided NPC. | |
IDecision | Decide () |
Decides the NPC's next action based on the current state and LLM responses. | |
void | CalculateRelevance (string newMemory, Action< int > relevanceFunc) |
Requests a relevance value from the NPC's LLM model. | |
void | Setup (NPC npc) |
Sets up the decision-making system with the provided NPC. | |
IDecision | Decide () |
Decides the NPC's next action. | |
void | CalculateRelevance (string newMemory, Action< int > relevanceFunc) |
Requests a calculation of relevance from the LLM server based on the current environment and NPC state. | |
Decision-making system for NPCs that uses a Large Language Model (LLM) to determine the next action based on the current environment and NPC state. This system interacts with the LLMServer to request decisions and processes the responses to guide NPC behavior.
void LlmDecisionMaker.CalculateRelevance | ( | string | newMemory, |
Action< int > | relevanceFunc | ||
) |
Requests a relevance value from the NPC's LLM model.
newMemory | New obtained memory to consider |
relevanceFunc | Delegate which will be called when the value is calculated. |
Implements IDecisionSystem.
IDecision LlmDecisionMaker.Decide | ( | ) |
Decides the NPC's next action based on the current state and LLM responses.
Implements IDecisionSystem.
void LlmDecisionMaker.Setup | ( | NPC | npc | ) |
Sets up the decision-making system with the provided NPC.
npc | The NPC that will use this decision-making system. |
Implements IDecisionSystem.