Installation
Client configuration
Create a client instance withcreateClient. All options have sensible defaults — only baseUrl is required.
Configuration options
| Option | Type | Default | Description |
|---|---|---|---|
baseUrl | string | — | Base URL of your Minns Memory Layer server |
apiKey | string | — | Your API key (see Authentication) |
enableDefaultTelemetry | boolean | true | Enable fire-and-forget performance telemetry |
defaultAsync | boolean | true | When true, processEvent() returns a local receipt immediately |
autoBatch | boolean | false | Buffer events locally and flush in batches |
batchInterval | number | 100 | Flush the batch queue every N milliseconds |
batchMaxSize | number | 20 | Flush when the queue reaches N events |
maxQueueSize | number | 1000 | Maximum local queue depth. enqueue() throws if exceeded |
Two ways to submit events
The SDK provides two submission modes:send() — synchronous
Waits for the server response before continuing. Use this when you need the response immediately.
enqueue() — asynchronous
Returns a local acknowledgement immediately and queues the event for background submission. Use this to keep your agent loop fast.
Direct event submission
You can also bypass the fluent builder and submit rawEvent objects:
Next steps
Event builder
Build rich events with the fluent API.
Memory & strategies
Query memories, claims, and learned strategies.
