Dense-Mem
← Assistants and integrations

Where’s band practice?

A saved message helps a bandmate answer a question and check the source.

Save the note

  1. Maya · Band chat

    We rehearse in Room 4.
    Bring headphones.

  2. Assistant

    Saved for the band

Maya asks her assistant to remember both lines for the band.

  1. Original message

    We rehearse in Room 4.
    Bring headphones.

  2. Checked destination

    Shared with the band

  3. Save completes

    Ready to find

The assistant sends one source item and chooses the band’s shared memory.

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

target_spaceenum
Maya’s assistant · Remember request
"team_shared"
Authenticated space selection
"team_shared"

The assistant sends team_shared when Maya chooses to save for the band. Dense-Mem checks shared write permission in the authenticated team.

remember request · Required

idempotency_keystring
Assistant · retained before sending
"band-note-01"
Remember replay lookup
"band-note-01"

The assistant keeps the key and the whole request. If the reply is lost, a retry with both unchanged can recover the original result.

remember request · Required · Up to 128 characters

Example remember arguments
{"target_space":"team_shared","idempotency_key":"band-note-01","evidence":[{"content":"We rehearse in Room 4.\nBring headphones.","source_type":"manual","source":"Band chat"}]}
Try saving privately
  1. Maya’s note

    We rehearse in Room 4.
    Bring headphones.

  2. Assistant

    Saved just for Maya

Maya chooses to save the note just for her.

  1. Original message

    We rehearse in Room 4.
    Bring headphones.

  2. Checked destination

    Maya’s private memory

  3. Save completes

    Ready for Maya to find

Dense-Mem saves the item in the private space of Maya’s authenticated identity.

target_spaceenum
Maya’s assistant · Remember request
"private"
Authenticated space selection
"private"

Private selects Maya’s authenticated private space. Sam’s search cannot retrieve from that space.

remember request · Required

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

idempotency_keystring
Assistant · retained before sending
"band-note-private-01"
Remember replay lookup
"band-note-private-01"

This private save has its own operation key. A retry of this save reuses this key and its unchanged request.

remember request · Required · Up to 128 characters

Example remember arguments
{"target_space":"private","idempotency_key":"band-note-private-01","evidence":[{"content":"We rehearse in Room 4.\nBring headphones.","source_type":"manual","source":"Band chat"}]}

Keep the two ideas

  1. Maya’s saved message

    We rehearse in Room 4.
    Bring headphones.

  2. Saved for the band

    Both lines are available

The saved message contains two things a bandmate could ask about.

  1. Original message

    We rehearse in Room 4.
    Bring headphones.

  2. Passage about the room

    We rehearse in Room 4.

  3. Passage about what to bring

    Bring headphones.

Dense-Mem finds a boundary between the ideas and keeps both passages in Maya’s exact words.

We rehearse in Room 4.↵
Bring headphones.
span_endinteger
Dense-Mem · accepted split
23
Stored span → Trace
23

The end is exclusive. The first passage includes 22 visible characters and the line break. Trace returns the same bound to locate the passage in the original.

remember result · Optional

span_startinteger
Validated split · first position
0
Remember result and Trace
0

The first span starts at Unicode code-point offset zero. Dense-Mem stores the offsets with the occurrence so it can recover the exact slice.

remember result · Optional

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

Try saving privately
  1. Maya’s saved message

    We rehearse in Room 4.
    Bring headphones.

  2. Private memory

    Both lines are available to Maya

Both ideas are saved in Maya’s private space.

  1. Original message

    We rehearse in Room 4.
    Bring headphones.

  2. Passage about the room

    We rehearse in Room 4.

  3. Passage about what to bring

    Bring headphones.

The same exact split stays within the private space selected for the entire note.

We rehearse in Room 4.↵
Bring headphones.
span_endinteger
Dense-Mem · accepted split
23
Stored span → Trace
23

The end is exclusive. The first passage includes 22 visible characters and the line break. Trace returns the same bound to locate the passage in the original.

remember result · Optional

span_startinteger
Validated split · first position
0
Remember result and Trace
0

The first span starts at Unicode code-point offset zero. Dense-Mem stores the offsets with the occurrence so it can recover the exact slice.

remember result · Optional

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

Ask where practice is

  1. Sam asks

    Where’s practice?

  2. From Maya’s saved note

    We rehearse in Room 4.

  3. Sam’s assistant

    Room 4.

Sam’s assistant finds Maya’s room message and answers “Room 4.”

Show original
  1. Question

    Where’s practice?

  2. Matching passage

    “Practice” and “rehearse” describe the same activity. Dense-Mem can find related wording by meaning.

    We rehearse in Room 4.

  3. About gear

    Bring headphones.

Search returns the relevant sentence from memory Sam can read. The assistant uses it to write the reply.

querystring
Sam’s assistant · Recall request
"Where’s practice?"
Search over allowed spaces
"Where’s practice?"

The reader’s question becomes a query. Search can match related wording within the reader’s eligible memory.

recall_memory request · Optional · Up to 512 characters

results[0].contextstring
Recall · exact evidence
"We rehearse in Room 4.\n"
Assistant’s answer
"We rehearse in Room 4.\n"

The result carries a slice of the saved words. In this example the assistant uses that slice to answer the question.

recall_memory result · Required · Up to 16384 characters

results[0].evidence_idUUID
Recall result
"00000000-0000-4000-8000-000000000001"
Trace request · evidence_id
"00000000-0000-4000-8000-000000000001"

The server returns the matching memory’s ID. The assistant can send that same ID to Trace, which checks access before returning its source.

recall_memory result · Required · Up to 128 characters

Example recall_memory arguments
{"query":"Where’s practice?","limit":1}
Try saving privately
  1. Sam asks

    Where’s practice?

  2. Sam’s assistant

    I couldn’t find the practice room.

Sam’s assistant has no matching passage from this note.

  1. Maya’s private passage

    We rehearse in Room 4.

  2. Sam’s search

    Only Sam’s permitted spaces

  3. From this note

    No result

Sam searches spaces he can read. The private note stays in Maya’s space.

querystring
Sam’s assistant · Recall request
"Where’s practice?"
Search over allowed spaces
"Where’s practice?"

The reader’s question becomes a query. Search can match related wording within the reader’s eligible memory.

recall_memory request · Optional · Up to 512 characters

target_spaceenum
Maya’s assistant · Remember request
"private"
Authenticated space selection
"private"

Private selects Maya’s authenticated private space. Sam’s search cannot retrieve from that space.

remember request · Required

Show the original

  1. Answer

    Room 4.

  2. Maya · Original message

    We rehearse in Room 4.
    Bring headphones.

Sam checks the answer against Maya’s original note.

  1. Returned passage

    We rehearse in Room 4.

  2. Original message · source span

    We rehearse in Room 4.
    Bring headphones.

The assistant uses the matching passage’s ID to follow it back to the saved message.

evidence_idUUID
Assistant · copied from Recall
"00000000-0000-4000-8000-000000000001"
Authorized Trace lookup
"00000000-0000-4000-8000-000000000001"

Trace uses the returned ID to look up the saved passage and its recorded provenance in a space this caller can read.

trace_memory request · Required · Up to 128 characters

occurrences[0].partition.source_item_idUUID
Trace · recorded occurrence
"20000000-0000-4000-8000-000000000002"
Original submitted item
"20000000-0000-4000-8000-000000000002"

The occurrence’s partition points to the original item. Its stored bounds locate the slice inside that item.

trace_memory result · Required · Up to 128 characters

span_endinteger
Dense-Mem · accepted split
23
Stored span → Trace
23

The end is exclusive. The first passage includes 22 visible characters and the line break. Trace returns the same bound to locate the passage in the original.

remember result · Optional

Example trace_memory arguments
{"evidence_id":"00000000-0000-4000-8000-000000000001","include_evidence_content":true}
Try saving privately
  1. Maya asks

    Where’s practice?

  2. Maya · Original message

    We rehearse in Room 4.
    Bring headphones.

Maya can still find the exact note from her own account.

  1. Maya’s authorized search

    Where’s practice?

  2. Original message

    We rehearse in Room 4.
    Bring headphones.

Maya can retrieve and trace the private passage through an authorized request in her own space.

target_spaceenum
Maya’s assistant · Remember request
"private"
Authenticated space selection
"private"

Private selects Maya’s authenticated private space. Sam’s search cannot retrieve from that space.

remember request · Required

span_endinteger
Dense-Mem · accepted split
23
Stored span → Trace
23

The end is exclusive. The first passage includes 22 visible characters and the line break. Trace returns the same bound to locate the passage in the original.

remember result · Optional

See when a note gets a topic

Read the reference