Skip to content
1 min read · 270 words

@nhtio/adk/batteries/validation/types

Declarative contracts for validating the ordering of ADK conversation primitives.

Interfaces

InterfaceDescription
AdjacencyRuleRequires a first-kind primitive to be immediately followed by a permitted primitive.
AlternationRuleRequires a strict sequence of conversation roles.
BlockingOrderingViolationA violation that is structurally eligible for repair or rejection.
OrderingAdvisoryViolationA non-blocking informational advisory violation.
OrderingGuardOptionsConfiguration for an ordering guard middleware.
OrderingGuardResultResult retained by the guard after evaluating or repairing a dispatch.
OrderingProfileA named collection of ordering rules for a model or hosting layer.
OrderingRepairOne safe mutation applied while repairing a blocking violation.
OrderingTimelineEntryOne time-ordered timeline entry merging Message, Thought, and ToolCall values.
OrderRuleRelative order required between two primitive kinds.
PreservationRuleRequires historical primitive content to remain present and/or stable.
RequiredMetadataRuleRequires provider-specific metadata on selected primitives.
RoleRemapRuleDescribes a required provider wire-role mapping for a primitive.
StaleContentAdvisoryRuleRecords vendor-recommended stale-content hygiene without ever creating a blocking violation.

Type Aliases

Type AliasDescription
BlockingOrderingRuleTypeThe rule types that are permitted to feed the nack/throw path.
OrderingPrimitiveKindPrimitive categories that can appear in an ordering timeline.
OrderingRuleEvery declarative ordering rule supported by the validation battery.
OrderingViolationAny reported ordering issue, whether blocking or informational.