Skip to main content

Function: buildMemoryContext()

buildMemoryContext(agent, allColonists?): string

Defined in: apps/paracosm/src/runtime/agent-memory.ts:185

Build memory context lines for a agent's reaction prompt. Returns a string block that gets injected into the prompt.

Parameters

agent

Agent

The agent whose memory to render

allColonists?

Agent[]

Optional full agent list for resolving relationship names

Returns

string