- Modernize BrainyInterface to only contain current API methods (add, relate, find, get) - Update all interface consumers to use modern API patterns - Make Brainy class implement clean modernized interface - Update CLI commands to use add() and relate() instead of deprecated methods - Update all source code components to use modern API consistently - Update examples and integration tests to modern patterns - Improve architectural consistency across the entire codebase BREAKING: BrainyInterface no longer contains deprecated methods Migration: Use add() instead of addNoun(), relate() instead of addVerb() |
||
|---|---|---|
| .. | ||
| tests | ||
| api-server-example.ts | ||
| augmentations-zero-config.ts | ||
| brainy-backup.ts | ||
| demo.ts | ||
| README.md | ||
Brainy Examples
This directory contains example code and test scripts for Brainy.
Structure
demo.ts- Basic demonstration of Brainy's core featurestests/- Various test scripts demonstrating different aspects of Brainy- Performance tests
- Memory tests
- Storage adapter tests
- API functionality tests
- CLI tests
Running Examples
Basic Demo
npm run build
node dist/examples/demo.js
Test Scripts
The scripts in tests/ are standalone Node.js scripts that can be run directly:
node examples/tests/test-simple.js
node examples/tests/test-core-functionality.js
Note
These are examples and test scripts for reference. For production use, see the main documentation in the project root.