SDKs

Official clients wrap REST. Per-call collection wins, then the client default, then the server default bucket. Explicit "" forces the default bucket.

TypeScript

npm install @gomind/sdk
import { GomindClient } from "@gomind/sdk";

const memory = new GomindClient(
  "https://api.gominddb.com",
  process.env.GOMIND_API_KEY!,
  { collection: "my-project" },
);

await memory.remember("user:maya", "has_skill", "TypeScript");
const { facts } = await memory.recall("user:maya");
await memory.feedWithOptions({
  content: "Maya works at Acme and writes TypeScript.",
  source: "onboarding",
  reason: true,
});

## Go

Public module. Latest tagged release: **v0.0.13**.

```bash
go get github.com/ingate/[email protected]
memory, err := gomind.NewClient(os.Getenv("GOMIND_API_KEY"))
_, err = memory.Remember(ctx, "user:maya", "has_skill", "Go", "")
result, err := memory.Recall(ctx, "user:maya", 20)
_, err = memory.FeedWithOptions(ctx, gomind.FeedRequest{
  Content: "Maya works at Acme and writes TypeScript.",
  Source:  "onboarding",
  Reason:  true,
})

PHP

composer require ingate/gomind-php-sdk
$memory = new Ingate\Gomind\Client(getenv('GOMIND_API_KEY'));
$memory->remember('user:maya', 'has_skill', 'PHP');
$result = $memory->recall('user:maya', 20);
$memory->feed('Maya works at Acme and writes TypeScript.', 'onboarding', null, true);

Runnable tabs live on Quickstart. Wire shapes are on the reference pages.