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

validbooleanOptional
Whether the generated output passed validation
signaturestring or nullOptional

Cryptographic signature (HMAC) if valid

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