Khwan · JSON-LD Context

Khwan Ai Context

JSON-LD context defining the semantic vocabulary for Khwan Ai from Khwan.

21 Classes 39 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
khwan: https://khwan.ai/schema#

Classes

GetCoresResponse PostCoresRequest PostCoresResponse DeleteCoresSlugResponse GetCoresSlugResponse PatchCoresSlugRequest GetLearningResponse GetLessonsResponse PatchLessonsIdRequest GetMemoryResponse GetMetricsResponse PostPrepareRequest PostPrepareResponse PostRecordRequest PostRecordResponse PostSyncResponse PostSynthesizePrepareResponse PostSynthesizeRecordRequest PostSynthesizeRecordResponse PostVerifyRequest PostVerifyResponse

Properties

Property Type Container
items list
slug string
name string
context string
ok boolean
window_days integer
rate decimal
previous decimal
blamed_retrievals integer
lessons_retrieved integer
worst list
user_id string
core string
lessons list
text string
turns integer
avg_coherence decimal
memory_size integer
input string
model string
constitution string
messages list
coherence decimal
sources list
allowed boolean
reason string
turn_token string
answer string
learned integer
synthesis_token string
system string
packets_scanned integer
clusters list
lessons_created integer
skipped integer
status string
write_failed integer
error string
contradiction boolean

JSON-LD Document

Raw ↑
{
  "@context": {
    "@vocab": "https://khwan.ai/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "khwan": "https://khwan.ai/schema#",
    "GetCoresResponse": "khwan:GetCoresResponse",
    "items": {
      "@id": "khwan:items",
      "@container": "@list"
    },
    "PostCoresRequest": "khwan:PostCoresRequest",
    "slug": {
      "@id": "khwan:slug",
      "@type": "xsd:string"
    },
    "name": {
      "@id": "khwan:name",
      "@type": "xsd:string"
    },
    "context": {
      "@id": "khwan:context",
      "@type": "xsd:string"
    },
    "PostCoresResponse": "khwan:PostCoresResponse",
    "DeleteCoresSlugResponse": "khwan:DeleteCoresSlugResponse",
    "ok": {
      "@id": "khwan:ok",
      "@type": "xsd:boolean"
    },
    "GetCoresSlugResponse": "khwan:GetCoresSlugResponse",
    "PatchCoresSlugRequest": "khwan:PatchCoresSlugRequest",
    "GetLearningResponse": "khwan:GetLearningResponse",
    "window_days": {
      "@id": "khwan:window_days",
      "@type": "xsd:integer"
    },
    "rate": {
      "@id": "khwan:rate",
      "@type": "xsd:decimal"
    },
    "previous": {
      "@id": "khwan:previous",
      "@type": "xsd:decimal"
    },
    "blamed_retrievals": {
      "@id": "khwan:blamed_retrievals",
      "@type": "xsd:integer"
    },
    "lessons_retrieved": {
      "@id": "khwan:lessons_retrieved",
      "@type": "xsd:integer"
    },
    "worst": {
      "@id": "khwan:worst",
      "@container": "@list"
    },
    "GetLessonsResponse": "khwan:GetLessonsResponse",
    "user_id": {
      "@id": "khwan:user_id",
      "@type": "xsd:string"
    },
    "core": {
      "@id": "khwan:core",
      "@type": "xsd:string"
    },
    "lessons": {
      "@id": "khwan:lessons",
      "@container": "@list"
    },
    "PatchLessonsIdRequest": "khwan:PatchLessonsIdRequest",
    "text": {
      "@id": "khwan:text",
      "@type": "xsd:string"
    },
    "GetMemoryResponse": "khwan:GetMemoryResponse",
    "GetMetricsResponse": "khwan:GetMetricsResponse",
    "turns": {
      "@id": "khwan:turns",
      "@type": "xsd:integer"
    },
    "avg_coherence": {
      "@id": "khwan:avg_coherence",
      "@type": "xsd:decimal"
    },
    "memory_size": {
      "@id": "khwan:memory_size",
      "@type": "xsd:integer"
    },
    "PostPrepareRequest": "khwan:PostPrepareRequest",
    "input": {
      "@id": "khwan:input",
      "@type": "xsd:string"
    },
    "model": {
      "@id": "khwan:model",
      "@type": "xsd:string"
    },
    "constitution": {
      "@id": "khwan:constitution",
      "@type": "xsd:string"
    },
    "PostPrepareResponse": "khwan:PostPrepareResponse",
    "messages": {
      "@id": "khwan:messages",
      "@container": "@list"
    },
    "coherence": {
      "@id": "khwan:coherence",
      "@type": "xsd:decimal"
    },
    "sources": {
      "@id": "khwan:sources",
      "@container": "@list"
    },
    "allowed": {
      "@id": "khwan:allowed",
      "@type": "xsd:boolean"
    },
    "reason": {
      "@id": "khwan:reason",
      "@type": "xsd:string"
    },
    "turn_token": {
      "@id": "khwan:turn_token",
      "@type": "xsd:string"
    },
    "PostRecordRequest": "khwan:PostRecordRequest",
    "answer": {
      "@id": "khwan:answer",
      "@type": "xsd:string"
    },
    "PostRecordResponse": "khwan:PostRecordResponse",
    "PostSyncResponse": "khwan:PostSyncResponse",
    "learned": {
      "@id": "khwan:learned",
      "@type": "xsd:integer"
    },
    "PostSynthesizePrepareResponse": "khwan:PostSynthesizePrepareResponse",
    "synthesis_token": {
      "@id": "khwan:synthesis_token",
      "@type": "xsd:string"
    },
    "system": {
      "@id": "khwan:system",
      "@type": "xsd:string"
    },
    "packets_scanned": {
      "@id": "khwan:packets_scanned",
      "@type": "xsd:integer"
    },
    "clusters": {
      "@id": "khwan:clusters",
      "@container": "@list"
    },
    "PostSynthesizeRecordRequest": "khwan:PostSynthesizeRecordRequest",
    "PostSynthesizeRecordResponse": "khwan:PostSynthesizeRecordResponse",
    "lessons_created": {
      "@id": "khwan:lessons_created",
      "@type": "xsd:integer"
    },
    "skipped": {
      "@id": "khwan:skipped",
      "@type": "xsd:integer"
    },
    "status": {
      "@id": "khwan:status",
      "@type": "xsd:string"
    },
    "write_failed": {
      "@id": "khwan:write_failed",
      "@type": "xsd:integer"
    },
    "error": {
      "@id": "khwan:error",
      "@type": "xsd:string"
    },
    "PostVerifyRequest": "khwan:PostVerifyRequest",
    "PostVerifyResponse": "khwan:PostVerifyResponse",
    "contradiction": {
      "@id": "khwan:contradiction",
      "@type": "xsd:boolean"
    }
  },
  "@type": "schema:Dataset",
  "schema:name": "Khwan API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects Khwan's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-11-13) from openapi/_ae-authored/khwan-ai-openapi-generated.yml.",
  "dcterms:created": "2026-11-13",
  "dcterms:source": [
    "openapi/_ae-authored/khwan-ai-openapi-generated.yml"
  ]
}