agentskit.js
Data layerMemory

createInMemoryPersonalization

Per-subject profile store. Inject into system prompt.

import { createInMemoryPersonalization, renderProfileContext } from '@agentskit/memory'

const profiles = createInMemoryPersonalization()
await profiles.set('user-42', { name: 'Ada', tz: 'UTC', likes: ['jazz'] })

const context = renderProfileContext(await profiles.get('user-42'))

API

  • get(subject) · set(subject, profile) · patch(subject, partial) · delete(subject).
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page