Get context / SLM prompt (Step 4)

View as Markdown

SDK sends recalled memories from its local vector DB. API synthesizes a full SLM prompt from persona + rules + memories + observation, with generation constraints.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

npcIdstringRequired

Request

This endpoint expects an object.
memorieslist of objectsRequired
Memories recalled by the SDK from its local vector DB
observationstringRequired

Original observation (echoed from directive step)

npcStatemap from strings to anyRequired
Current NPC state
personastringRequired
NPC persona used to construct context
rulesetIdstring or nullOptional

Response

Full SLM prompt and constraints
promptstring

Full SLM prompt text — SDK runs this verbatim

constraintsobject
ctxMessageslist of objects or null