← Files GoodMemARCHIVED FILE

skills/goodmem-sdk/references/java/models/MemoryId.md

747 Bytes · Oct 2, 2026 · 00:24 UTC

↓ Download file

<!-- sdk-ref package=ai.pairsys:goodmem-java registry=maven version=0.2.2 -->

# MemoryId

Typed handle for a memory id (UUID).

Wire format is the bare id string (typically a UUID), so MemoryId is
 drop-in compatible with the `String`-typed id fields on the
 server. Prefer this over a bare `String` so the compiler
 catches cross-resource mixups (passing a `MemoryId` where a
 `SpaceId` is expected).

The backing field is `String` (not `UUID`) so test
 fixtures and dev environments using non-UUID identifiers still work.
 Production ids are UUIDs by server contract; call `asUuid()`
 when you need the parsed form.

- `value` (`String`):

[Java](../../java.md)

Related types — open only those used by your request:

- [SpaceId](SpaceId.md)

SHA-256: 79a45c76abb47466f591d27419a21f543b66e12a579b098789998ee827332a3a