OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
Loading...
Searching...
No Matches
Public Attributes | List of all members
OpenAnima::Core::NpcReply Struct Reference

#include <NpcReply.h>

Public Attributes

std::string reasoning
 Private thoughts. Empty when it had none.
 
std::string dialogue
 What it says out loud. Empty when it says nothing.
 
std::vector< NpcAction > actions
 What it asks the host to do.
 
nlohmann::ordered_json document
 The answer as it arrived, in its own order.
 
Completion completion
 The answer as the provider reported it.
 

Detailed Description

The answer of a turn, split into the three variables the reply contract defines.

reasoning is the NPC's inner voice: what it thinks before it speaks, in character and in the first person. The library never reads into it. It hands it over, and keeps the whole document in the history so the NPC reads it again on the next turn.


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