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

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.
 

Detailed Description

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.

Member Function Documentation

◆ CalculateRelevance()

void LlmDecisionMaker.CalculateRelevance ( string  newMemory,
Action< int >  relevanceFunc 
)

Requests a relevance value from the NPC's LLM model.

Parameters
newMemoryNew obtained memory to consider
relevanceFuncDelegate which will be called when the value is calculated.

Implements IDecisionSystem.

◆ Decide()

IDecision LlmDecisionMaker.Decide ( )

Decides the NPC's next action based on the current state and LLM responses.

Returns
An implementation of IDecision representing the NPC's next action.

Implements IDecisionSystem.

◆ Setup()

void LlmDecisionMaker.Setup ( NPC  npc)

Sets up the decision-making system with the provided NPC.

Parameters
npcThe NPC that will use this decision-making system.

Implements IDecisionSystem.


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