()
| 24 | ) |
| 25 | |
| 26 | func main() { |
| 27 | ctx := context.Background() |
| 28 | |
| 29 | fmt.Println("=== Aster SDK Logic Memory Example ===") |
| 30 | fmt.Println() |
| 31 | |
| 32 | // Example 1: Basic Usage |
| 33 | basicUsageExample(ctx) |
| 34 | |
| 35 | // Example 2: Event Processing with PatternMatcher |
| 36 | eventProcessingExample(ctx) |
| 37 | |
| 38 | // Example 3: Middleware Integration |
| 39 | middlewareExample(ctx) |
| 40 | |
| 41 | // Example 4: Memory Consolidation |
| 42 | consolidationExample(ctx) |
| 43 | |
| 44 | // Example 5: Memory Pruning |
| 45 | pruningExample(ctx) |
| 46 | |
| 47 | fmt.Println("\n=== All examples completed ===") |
| 48 | } |
| 49 | |
| 50 | // basicUsageExample demonstrates basic Logic Memory operations |
| 51 | func basicUsageExample(ctx context.Context) { |
nothing calls this directly
no test coverage detected