Memory profiles reference
Method signatures, parameters, responses and examples for memory profiles.
Use a configured server-side nirmos client from the quickstart. See the memory guide for prerequisites and workflows. Example IDs and configured model names are placeholders; replace them with organization-visible resources before executing. Mutating calls change live resources.
HTTP calls reject with APIError subclasses on unsuccessful HTTP responses and may throw NetworkError, TimeoutError or RequestAbortedError. Signatures describe SDK values after response decoding; they are not raw HTTP envelopes. Backend validation, permissions and feature availability remain authoritative.
| Method | Transport |
|---|---|
memory.profiles.get | Control plane |
memory.profiles.generate | Runtime |
memory.profiles.get
Get Memory Space Profile
Control plane: GET /v1/memory/spaces/:id/profile.
Credentials: Personal or service API key with the required grants.
Required permission: memory:read.
REST endpoint, security and schemas · Related guide
Types: Queries · RequestOptions · Responses
nirmos.memory.profiles.get(
id: string,
query?: Queries["getMemorySpaceProfile"] /* default: {} */,
options?: RequestOptions | undefined
): Promise<Responses["getMemorySpaceProfile"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
query | No | Queries["getMemorySpaceProfile"]; default {} |
options | No | RequestOptions | undefined |
Query fields
| Field | Required | Type |
|---|---|---|
subjectType | No | string | undefined |
subjectId | No | string | undefined |
Returns: Responses["getMemorySpaceProfile"].
Example
const result = await nirmos.memory.profiles.get("resource-id", {});memory.profiles.generate
Build derived profile state for a space.
Runtime: POST /v1/memory/profiles/generate.
Credentials: Personal or service API key with the required grants.
Types: MemoryGenerateRequest · RequestOptions · MemoryProfileGenerateResponse
nirmos.memory.profiles.generate(
body: MemoryGenerateRequest,
options?: RequestOptions | undefined
): Promise<MemoryProfileGenerateResponse>| Parameter | Required | Type / default |
|---|---|---|
body | Yes | MemoryGenerateRequest |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
memorySpaceId | Yes | string |
Returns: MemoryProfileGenerateResponse.
Runtime Memory disables automatic retries for this operation, including when an idempotency key is supplied.
Example
const result = await nirmos.memory.profiles.generate({
"memorySpaceId": "memory-space-id"
});