Intelligence · interface
AuthoritativeAgentOptions
Explained in Agents and behaviour.
interface AuthoritativeAgentOptionsimport type { AuthoritativeAgentOptions } from '@driftengine/ai';Properties
| Name | Type | Description |
|---|---|---|
channel | DecisionChannel | |
log | CommandLog | The log both sides read.MoreOn the authority the session writes it and this publishes from it; on a participant the channel fills it and the replay reads it. One structure, because a second one would be a second answer to what the agent decided. |
Methods
role
role(): AgentRoleWhich side this is, asked every tick.
More
A function and not a flag because authority can move, and a wrapper that cached the answer at construction would keep deciding after it stopped being allowed to.