Skip to content
1 min read · 154 words

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

PropertyTypeDescriptionDefined in
disallowBetweenOrderingPrimitiveKind[]Primitive kinds that may not immediately follow a first-kind primitive.src/batteries/validation/types.ts:116
firstOrderingPrimitiveKindPrimitive whose immediate successor is constrained.src/batteries/validation/types.ts:114
idstringStable identifier used in violations.src/batteries/validation/types.ts:112
type"adjacency"Discriminator selecting the adjacency evaluator.src/batteries/validation/types.ts:110