Skip to content

Variable: MemoryLoadedNoteRecordSchema ​

ts
const MemoryLoadedNoteRecordSchema: ZodObject<{
  context: ZodOptional<ZodArray<ZodString>>;
  createdAt: ZodISODateTime;
  drainedOnThisRead: ZodBoolean;
  id: ZodString;
  lifecycle: ZodDiscriminatedUnion<[ZodObject<{
     mode: ZodLiteral<"persistent">;
   }, $strip>, ZodObject<{
     mode: ZodLiteral<"read-count">;
     remainingReads: ZodNumber;
   }, $strip>, ZodObject<{
     expiresAt: ZodISODateTime;
     mode: ZodLiteral<"hard-expiry">;
   }, $strip>, ZodObject<{
     expiresAt: ZodISODateTime;
     mode: ZodLiteral<"soft-expiry">;
  }, $strip>], "mode">;
  renderedText: ZodString;
  repos: ZodOptional<ZodArray<ZodString>>;
  role: ZodString;
  text: ZodString;
  type: ZodLiteral<"note">;
  updatedAt: ZodOptional<ZodISODateTime>;
}, $strip>;

Defined in: schemas/memory-tools.schema.ts:50

Note record returned by read tools, augmented with whether the read triggered final drainage.

Released under the MIT License.