Get verdict (Step 7)

View as Markdown

SDK sends SLM-generated output. API validates it against rules, signs it, and returns memory storage instructions + state delta for the SDK to execute locally.

Authentication

AuthorizationBearer

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

Path parameters

npcIdstringRequired

Request

This endpoint expects an object.
generatedOutputstringRequired
Raw output from the local SLM
observationstringRequired

Original observation (echoed)

npcStatemap from strings to anyRequired
rulesetIdstring or nullOptional

Response

Validation verdict with storage/state instructions

validboolean
Whether the generated output passed validation
signaturestring or null

Cryptographic signature (HMAC) if valid

memoryStorelist of objects
Instructions for what the SDK should store in its local vector DB
stateDeltamap from strings to any
State changes for the SDK to apply locally
actionobject or null
Validated action to return to the game
dialoguestring
Validated dialogue text returned to the caller