agentskit.js
Memory

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).

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page