Intelligence · interface

PolicyOption

Explained in Agents and behaviour.

interface PolicyOption
import type { PolicyOption } from '@driftengine/ai';

Properties

NameTypeDescription
intentreadonlyIntentPre-built and reused, never constructed per tick.
More

The floor claims it allocates nothing per tick, and selecting among N existing objects makes that true by construction rather than by care.

Methods

score

score(context: PolicyContext): number
ParameterTypeDescription
contextPolicyContext