Skip to main content

Installation

Client configuration

Create a client instance with createClient. All options have sensible defaults — only baseUrl is required.

Configuration options

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.
Always call await client.flush() before your process exits to ensure all queued events are submitted.

Direct event submission

You can also bypass the fluent builder and submit raw Event objects:

Next steps

Event builder

Build rich events with the fluent API.

Memory & strategies

Query memories, claims, and learned strategies.