Expand description
WASM bindings for EXO-AI 2025 Cognitive Substrate
This module provides browser bindings for the EXO substrate, enabling:
- Pattern storage and retrieval
- Similarity search with various distance metrics
- Temporal memory coordination
- Causal queries
- Browser-based cognitive operations
Structs§
- Causal
Query Config - Causal query configuration
- Causal
Result - Result from causal query
- ExoError
- WASM-specific error type that can cross the JS boundary
- ExoSubstrate
- Main EXO substrate interface for browser deployment
- Pattern
- Pattern representation in the cognitive substrate
- Query
Config - JavaScript-compatible query configuration
- Search
Result - Search result from substrate query
- Substrate
Config - Configuration for EXO substrate
Enums§
- Causal
Cone Type - Causal cone type for temporal queries
- Topological
Query - Topological query types for advanced substrate operations
Functions§
- create_
js_ error - Helper to create JavaScript error objects
- debug
- Log debug information (includes timing)
- detect_
simd - Detect SIMD support in the current environment
- error
- Log an error to the browser console
- format_
bytes - Format bytes to human-readable string
- generate_
uuid - Generate a random UUID v4
- get_
memory_ info - Get available memory (if supported by browser)
- get_
performance_ metrics - Get browser performance metrics
- init
- Initialize panic hook and tracing for better error messages
- is_
indexed_ db_ available - Check if IndexedDB is available
- is_
local_ storage_ available - Check if localStorage is available
- is_
wasm_ supported - Check if running in a browser with WebAssembly support
- is_
web_ worker - Check if running in a Web Worker context
- js_
array_ to_ vec_ f32 - Convert JavaScript array to Rust Vec
- js_
object_ to_ json - Convert JavaScript object to JSON value
- json_
to_ js_ object - Convert JSON value to JavaScript object
- log
- Log a message to the browser console
- measure_
time - Measure execution time of a function
- set_
panic_ hook - Set up panic hook for better error messages in browser console
- validate_
dimensions - Helper to validate vector dimensions
- validate_
k - Helper to validate k parameter
- validate_
not_ empty - Helper to validate vector is not empty
- vec_
f32_ to_ js_ array - Convert Rust Vec
to JavaScript Float32Array - version
- Get version information
- warn
- Log a warning to the browser console