Primitives
Supported Primitives - SymbolicAI
Primitive/Operator
Category
Syntactic
Semantic
Description
1. Syntactic vs. Semantic Symbols
How to switch to the semantic view
2. Inversion and Negation
Inversion (~)
~)Negation (-)
-)3. Comparison Operations
Equality (==) and Inequality (!=)
==) and Inequality (!=)Semantic Equality - Conceptual Equivalence
Semantic Inequality (!=)
!=)Advanced Contextual Equality - Custom Context Comparison
4. Membership Operations
The in Operator - Semantic Containment
in Operator - Semantic ContainmentSemantic Membership - Conceptual Containment
Enhanced Semantic Containment - Multi-Type Support
5. Ordering and Comparison Operations
Greater Than (>) and Less Than (<) and Greater or Equal (>=) and Less or Equal (<=)
>) and Less Than (<) and Greater or Equal (>=) and Less or Equal (<=)6. Shift Operations - Semantic Inclusion
Left Shift (<<) and Right Shift (>>)
<<) and Right Shift (>>)Semantic Inclusion Operations
Practical Use Cases
7. Bitwise and Logical Operations
Bitwise AND (&) - Intersection and Logical Conjunction
&) - Intersection and Logical ConjunctionBitwise OR (|) - Union and Logical Disjunction
|) - Union and Logical DisjunctionBitwise XOR (^) - Exclusive OR
^) - Exclusive OR8. Arithmetic Operations
Addition (+) and Subtraction (-)
+) and Subtraction (-)String Manipulation (@, /)
@, /)9. Indexing and Slicing Operations
Getting Items (symbol[key])
symbol[key])Setting Items (symbol[key] = value)
symbol[key] = value)Deleting Items (del symbol[key])
del symbol[key])10. Type Checking Operations
Semantic Type Validation (isinstanceof)
isinstanceof)11. Basic Symbolic Manipulations
Conditional Logic Processing
System Solving and Constraints
12. Data Processing and Manipulation Operations
Text Cleaning and Normalization (clean)
clean)Content Summarization (summarize)
summarize)Content Outlining (outline)
outline)Content Filtering (filter)
filter)Content Modification (modify)
modify)Text Replacement (replace)
replace)Content Removal (remove)
remove)Content Addition (include, combine)
include, combine)Semantic Mapping (map)
map)13. Pattern Matching and Intelligence Operations
Content Ranking (rank)
rank)Pattern Extraction (extract)
extract)Code Correction (correct)
correct)Language Translation (translate)
translate)Multi-Choice Classification (choice)
choice)14. Query Handling
Querying
Format Conversion (convert)
convert)Content Transcription (transcribe)
transcribe)15. Execution Control and Code Operations
Code Analysis (analyze)
analyze)Code Execution (execute, fexecute)
execute, fexecute)Code Simulation (simulate)
simulate)Information Sufficiency (sufficient)
sufficient)List Processing (list, foreach)
list, foreach)Fault-Tolerant Execution (ftry)
ftry)16. Dictionary Handling Operations
Dictionary Creation (dict)
dict)17. Template and Styling Operations
Template Substitution (template)
template)Content Styling (style)
style)18. Data Clustering Operations
Semantic Clustering (cluster)
cluster)19. Embedding and Similarity Operations
Embedding Generation (embed, embedding)
embed, embedding)Similarity and Distance Calculations
Embedding Packaging (zip)
zip)20. Input/Output Handling Operations
File Operations (open)
open)User Input (input)
input)21. Persistence Operations
Saving Symbols (save)
save)Loading Symbols (load)
load)Dynamic Function Expansion (expand)
expand)22. Output Processing Operations
Output Handling (output)
output)Last updated