Skip to content

UserIntentReason

Defined in: packages/protocol/src/lib/request.ts:33

Reason for triggering an engine update - user intent

readonly optional id?: string

Defined in: packages/protocol/src/lib/request.ts:40

An id the caller assigns so a Planner verdict can name this reason. Unique within the request and never blank. Absent when the caller needs no per-reason verdict.


readonly intent: string

Defined in: packages/protocol/src/lib/request.ts:42

The user’s natural language intent


readonly optional referents?: Readonly<Record<string, JsonValue>>

Defined in: packages/protocol/src/lib/request.ts:49

Exact values the caller already knows, such as ids and quantities, carried to every Planner stage unchanged. A Planner decides whether to read them. They are inputs, not instructions: the Planner still chooses the Actions and their parameters. Absent means none.


readonly type: "user_intent"

Defined in: packages/protocol/src/lib/request.ts:34