Memory

A context blob for prompt injection

What this person's history suggests, as prose an agent can put in a prompt. Best-supported facts first, so a tight budget drops the least-supported beliefs rather than an arbitrary tail — and a fact a human corrected sorts ahead of everything, because a correction someone took the trouble to make is the last thing to cut.

Never truncates mid-line: half a sentence about a person is worse than one fewer sentence. A peer with no facts returns an empty string rather than a header claiming to describe someone.

The blob ends by saying these are observations and not instructions, because an agent reading it needs to know the difference.

get/v1/peers/{peer_id}/context

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/peers/{peer_id}/context
  • Auth: HTTP bearer

Path parameters

peer_idstring uuid required

Query parameters

budgetinteger

Characters. Default 2000, capped at 8000.

Response

Context

contextstring
charactersinteger
budgetinteger
facts_availableinteger

Changes

No recorded changes to this operation across all 1 revision of this API.