DiscordPHP-NHA Documentation

State

Table of Contents

Traits

AutoplayLeaseTrait
{@see \NHA\StateStore} slice: the single-driver lease for the autoplay loop.
CombineMemoryTrait
{@see \NHA\StateStore} slice: durable `combine` bookkeeping so {@see \NHA\Brain\AutoPlayer} never re-submits a set that mints nothing — every set tried this session (capped, deduped), and the confirmed-dead subset the Inventors' Guild has rejected. Both survive a restart: a restart is not a fresh invention budget.
DecisionLogTrait
{@see \NHA\StateStore} slice: the brain's decision record — the last decision per agent (verb, args, rationale, `queued_intent` id) plus a rolling 24-turn history so {@see \NHA\Brain\AutoPlayer::detectLoop()} and the prompt can see repetition beyond the last turn.
IdentityStateTrait
{@see \NHA\StateStore} slice: the stable operational config — the default agent id + token, the per-Discord-user identity map, the autoplay on/off flag, and the registered slash-command signatures.
LoopStrategyStateTrait
{@see \NHA\StateStore} slice: the autoplay loop's strategic memory — the forced-objective rotation and its cooldown (armed when {@see \NHA\Brain\AutoPlayer::detectLoop()} catches the agent looping), the persisted {@see \NHA\Brain\Stance}, and the inventor-points trend that tells the fallback whether research is still paying.
PositionStateTrait
{@see \NHA\StateStore} slice: each agent's last-known world position + tick, snapshotted from `GET /observe/:id` so a later turn can show it (or detect movement) without a fresh fetch.
On this page

Search results