MemItPayload
@curiouslycory/memai-sdk / MemItPayload
Type Alias: MemItPayload
MemItPayload =
object
Defined in: types.ts:131
Payload for the "Mem It" endpoint (MemClient.memIt). This endpoint is versatile for sending various types of content to Mem.
See
Example
const payload: MemItPayload = {
input: "<h1>Project Alpha Notes</h1><p>Meeting on 2024-01-15...</p>",
instructions: "Create a new note titled 'Project Alpha Meeting' and add to 'Projects' collection.",
context: "This content is related to Project Alpha.",
timestamp: new Date().toISOString(),
};
Properties
context?
optional
context:string
Defined in: types.ts:138
Optional additional context to help Mem understand or categorize the input.
input
input:
string
Defined in: types.ts:133
The primary content to be processed by Mem (e.g., raw text, HTML, a URL).
instructions?
optional
instructions:string
Defined in: types.ts:136
Optional natural language instructions for Mem on how to process the input (e.g., "Summarize this article", "Add to my reading list").
timestamp?
optional
timestamp:string
Defined in: types.ts:140
Optional timestamp (ISO 8601 format) to associate with the mem, if different from the processing time.