Expand description
AST shapes that travel over the wire.
This is the SDK-facing slice of akribes_core::ast: just the types
that consumers need to interpret engine events (Span, TypeRef,
TypeField, ActorHint, FieldConstraint and the associated
sentinel constants). The full akribes_core::ast module also defines
Stmt, Expr, Program, and the rest of the language AST, which
stays in core because the parser/analyzer/compiler own those shapes.
Structs§
Enums§
- Actor
Hint - Field
Constraint - A single field-level validation constraint attached to a
typefield. Parsed from the Constraint Mini-Language (seedocs/superpowers/specs/2026-04-18-epa-constraint-language-design.md).
Constants§
- MAX_
UNION_ ARMS - Upper cap on discriminated-union arms. 8 is the tightest reliable
value across Anthropic tool-use + Gemini
responseSchemaunder preliminary testing. The analyzer raisesAKRIBES-E-UNION-009when an arm list exceeds this. - OPTIONAL_
SENTINEL - Sentinel
TypeRef.namefor an optional type (T?). Theinnerfield holds the wrappedT.noneis assignable to any optional type;T?is NOT assignable toTwithout an explicit?? defaultunwrap or a pattern-match onnone. (D2) - VARIANT_
UNION_ SENTINEL - Sentinel
TypeRef.namefor a discriminated union (A | B | ...).