From b25d6e2faea86358c10b0a045c5c595e04e9dc2f Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Tue, 6 Oct 2026 09:44:12 -0700 Subject: [PATCH] docs: add llms.txt summary and name SDK tab headings (#1757) --- apps/docs/docs.json | 1 + apps/docs/integrations/supermemory-sdk.mdx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/docs/docs.json b/apps/docs/docs.json index f481ab7a..c8bf873e 100644 --- a/apps/docs/docs.json +++ b/apps/docs/docs.json @@ -68,6 +68,7 @@ "light": "/logo/light.svg" }, "name": "supermemory | Memory API for the AI era", + "description": "Frontier agent memory and context platform", "navbar": { "links": [ { diff --git a/apps/docs/integrations/supermemory-sdk.mdx b/apps/docs/integrations/supermemory-sdk.mdx index 43d2c170..ae99c3f1 100644 --- a/apps/docs/integrations/supermemory-sdk.mdx +++ b/apps/docs/integrations/supermemory-sdk.mdx @@ -20,13 +20,13 @@ Both SDKs also work against [self-hosted Supermemory](/self-hosting/overview) - ## Installation + ## Install the TypeScript SDK ```bash npm install supermemory ``` - ## Quick start + ## Start a TypeScript client ```typescript import Supermemory from 'supermemory'; @@ -52,7 +52,7 @@ Both SDKs also work against [self-hosted Supermemory](/self-hosting/overview) console.log(profile.profile.dynamic); ``` - ## Common operations + ## Run common TypeScript operations ```typescript // Add with metadata @@ -81,7 +81,7 @@ Both SDKs also work against [self-hosted Supermemory](/self-hosting/overview) await client.documents.delete({ docId: "doc_123" }); ``` - ## Error handling & retries + ## Handle TypeScript SDK errors | Status | Error | |--------|-------| @@ -100,13 +100,13 @@ Both SDKs also work against [self-hosted Supermemory](/self-hosting/overview) - ## Installation + ## Install the Python SDK ```bash pip install supermemory ``` - ## Quick start + ## Start a Python client ```python import os @@ -133,7 +133,7 @@ Both SDKs also work against [self-hosted Supermemory](/self-hosting/overview) print(profile.profile.dynamic) ``` - ## Common operations + ## Run common Python operations ```python # Add with metadata @@ -162,7 +162,7 @@ Both SDKs also work against [self-hosted Supermemory](/self-hosting/overview) client.documents.delete(doc_id="doc_123") ``` - ## Error handling & retries + ## Handle Python SDK errors Same error classes as the TypeScript SDK (`BadRequestError`, `AuthenticationError`, `PermissionDeniedError`, `NotFoundError`, `ConflictError`, `UnprocessableEntityError`, `RateLimitError`, `InternalServerError`), all inheriting from `supermemory.APIError`. Connection errors, 408, 409, 429, and >=500 responses are retried automatically (`max_retries`, default 2). Requests time out after 1 minute by default (`timeout` option). Set `SUPERMEMORY_LOG=info` (or `debug`) to enable logging.