Modules§
- ast
- AST types produced by the HirnQL parser.
Structs§
- Correct
Stmt - Counterfactual
Stmt COUNTERFACTUAL "antecedent" THEN "consequent" [IN <ns>]— reason about alternative histories.- Create
Realm Stmt - Drop
Realm Stmt - Expand
Clause - Explain
Causes Stmt EXPLAIN CAUSES "event" [IN <ns>] [DEPTH N]— find causal chains backward.- Explain
Policy Stmt - Explain
Stmt - Grant
Stmt - Group
ByClause - GROUP BY clause with aggregation function.
- History
Stmt - Inspect
Stmt - Merge
Memory Stmt - Parse
Error - Parse error with location and context.
- Query
Limits - Configurable limits for query parsing.
- Recall
Events Stmt - Recall
Stmt - Retract
Stmt - Revoke
Stmt - SetAssignment
- A SET assignment in semantic mutation SET clauses.
- SetTier
Policy Stmt SET TIER_POLICY <field> = <value>- Show
Policies Stmt - Subquery
- An inner RECALL subquery (used in WHERE … IN (…)).
- Subquery
Filter - A WHERE … IN (subquery) filter.
- Supersede
Stmt - Think
Stmt - Trace
Stmt - Traverse
Stmt - What
IfStmt WHAT_IF "intervention" THEN "outcome" [IN <ns>]— simulate do-calculus.- Where
Condition
Enums§
- Activation
Mode Ast - AggFunction
- Aggregation function.
- Comparison
Op - Condition
Value - Consistency
Level - Depth
Mode Ast - Depth scheduling mode.
- Forget
Mode - Grant
Target - Target of a GRANT/REVOKE: either a namespace or a realm.
- Modal
Content - Multi-modal content parsed from HirnQL CONTENT IMAGE/CODE/AUDIO/VIDEO/DOCUMENT/STRUCTURED.
- Output
Format - Principal
Ref - Principal reference: either an agent or a team.
- Recall
Snapshot Ast - Retrieval
Mode - Retrieval mode for THINK statements.
- Semantic
Target Ref - SetValue
- Value for a SET assignment.
- Statement
- A parsed HirnQL statement.
- Temporal
Clause - Tier
Policy Value - A value in a
SET TIER_POLICYassignment.
Functions§
- collect_
parameters - Extract all parameter placeholders from a statement.
- is_
param - Returns
trueif the string is a parameter placeholder ($1,$name). - parse
- Parse a HirnQL query string into a
Statement. - parse_
edge_ relation - Parse a case-insensitive edge relation name (e.g.
"related_to","causes") into anEdgeRelation. - parse_
with_ limits - Parse a HirnQL query string with configurable limits.