Function
recentMessages
(messages []map[string]any, limit int)
Source from the content-addressed store, hash-verified
| 273 | |
| 274 | mode, sourceIDs := fabricSynchronousMemoryRequest(events) |
| 275 | policy := memory.SemanticDeferred |
| 276 | if len(sourceIDs) > 0 { |
| 277 | policy = memory.SemanticDurableOnly |
| 278 | } |
| 279 | ingested, ingestErr := c.Engine.AppendEvents(ctx, events, memory.IngestOptions{SemanticPolicy: policy}) |
| 280 | if !ingested.Durable { |
| 281 | if ingestErr != nil { |
| 282 | return "", ingestErr |
| 283 | } |
Tested by
no test coverage detected