|
OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
|
#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. | |
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.