MCPcopy Create free account
hub / github.com/astercloud/aster / main

Function main

examples/logic-memory/main.go:26–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24)
25
26func 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
51func basicUsageExample(ctx context.Context) {

Callers

nothing calls this directly

Calls 5

basicUsageExampleFunction · 0.85
eventProcessingExampleFunction · 0.85
middlewareExampleFunction · 0.85
consolidationExampleFunction · 0.85
pruningExampleFunction · 0.85

Tested by

no test coverage detected