Interface: AdjacencyRule
Defined in: src/batteries/validation/types.ts:108
Requires a first-kind primitive to be immediately followed by a permitted primitive.
Remarks
The ADK's Message has no payload field, and its MessageRole documentation says tool results never appear in persisted message history. Results live on ToolCall itself, so the former field-correlation model could never resolve a tool result. This rule therefore directly forbids selected kinds as the immediate successor.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
disallowBetween | OrderingPrimitiveKind[] | Primitive kinds that may not immediately follow a first-kind primitive. | src/batteries/validation/types.ts:116 |
first | OrderingPrimitiveKind | Primitive whose immediate successor is constrained. | src/batteries/validation/types.ts:114 |
id | string | Stable identifier used in violations. | src/batteries/validation/types.ts:112 |
type | "adjacency" | Discriminator selecting the adjacency evaluator. | src/batteries/validation/types.ts:110 |