@nhtio/adk/batteries/validation/types
Declarative contracts for validating the ordering of ADK conversation primitives.
Interfaces
| Interface | Description |
|---|---|
| AdjacencyRule | Requires a first-kind primitive to be immediately followed by a permitted primitive. |
| AlternationRule | Requires a strict sequence of conversation roles. |
| BlockingOrderingViolation | A violation that is structurally eligible for repair or rejection. |
| OrderingAdvisoryViolation | A non-blocking informational advisory violation. |
| OrderingGuardOptions | Configuration for an ordering guard middleware. |
| OrderingGuardResult | Result retained by the guard after evaluating or repairing a dispatch. |
| OrderingProfile | A named collection of ordering rules for a model or hosting layer. |
| OrderingRepair | One safe mutation applied while repairing a blocking violation. |
| OrderingTimelineEntry | One time-ordered timeline entry merging Message, Thought, and ToolCall values. |
| OrderRule | Relative order required between two primitive kinds. |
| PreservationRule | Requires historical primitive content to remain present and/or stable. |
| RequiredMetadataRule | Requires provider-specific metadata on selected primitives. |
| RoleRemapRule | Describes a required provider wire-role mapping for a primitive. |
| StaleContentAdvisoryRule | Records vendor-recommended stale-content hygiene without ever creating a blocking violation. |
Type Aliases
| Type Alias | Description |
|---|---|
| BlockingOrderingRuleType | The rule types that are permitted to feed the nack/throw path. |
| OrderingPrimitiveKind | Primitive categories that can appear in an ordering timeline. |
| OrderingRule | Every declarative ordering rule supported by the validation battery. |
| OrderingViolation | Any reported ordering issue, whether blocking or informational. |