Developers
SDKs
Idiomatic clients for the Mnemos API with built-in retries, signed-webhook verification, and typed resources.
Official SDKs
JavaScript and TypeScript
install
npm install @mnemos/sdk
# or pnpm add @mnemos/sdk
# or yarn add @mnemos/sdkusage
import { Mnemos } from "@mnemos/sdk";
const mnemos = new Mnemos({
apiKey: process.env.MNEMOS_API_KEY!,
});
// Ask a question
const answer = await mnemos.search.ask({
query: "How do we close month-end revenue?",
});
for (const c of answer.citations) {
console.log(c.uri, c.score);
}
// Start an interview
const session = await mnemos.sessions.create({
template: "operational_workflow",
intervieweeEmail: "aria@acme.com",
title: "Month-end revenue close",
});Python
install
pip install mnemos
# or uv add mnemosusage
import os
from mnemos import Mnemos
mnemos = Mnemos(api_key=os.environ["MNEMOS_API_KEY"])
answer = mnemos.search.ask(query="How do we close month-end revenue?")
for c in answer.citations:
print(c.uri, c.score)
session = mnemos.sessions.create(
template="operational_workflow",
interviewee_email="aria@acme.com",
title="Month-end revenue close",
)Go
install
go get github.com/mnemos-ai/mnemos-gousage
package main
import (
"context"
"fmt"
"os"
"github.com/mnemos-ai/mnemos-go"
)
func main() {
client := mnemos.New(os.Getenv("MNEMOS_API_KEY"))
ctx := context.Background()
ans, err := client.Search.Ask(ctx, &mnemos.AskRequest{
Query: "How do we close month-end revenue?",
})
if err != nil { panic(err) }
for _, c := range ans.Citations { fmt.Println(c.URI, c.Score) }
}Coverage
All three SDKs are generated from the same OpenAPI specification and ship with retry, rate-limit, and webhook-verification helpers. The TypeScript and Python clients include first-class streaming support for chat and audit endpoints.