Lingara Lingara Docs Guides API Libraries Apps Build Web app
Language: English

world.context_changed

API version 2026-10-affable-towhee

You → Lingara world.context_changed

Your game tells Lingara that the learner's world has changed.

Scopes events:write

POST /v1/events

Payload

typestringrequired
dataWorldContextChangedrequired
scenestringrequired
npcNpc | nulloptional
namestringrequired
personastring | nulloptional
source_langstringrequired
target_langstringrequired
levelintegerrequired
tagsarray of stringoptional
generateboolean | nulloptional

Example

{
  "type": "world.context_changed",
  "data": {
    "scene": "A night market in Taipei, just after rain",
    "npc": {
      "name": "Auntie Lin",
      "persona": "a street-food vendor who likes to haggle"
    },
    "source_lang": "en",
    "target_lang": "zh",
    "level": 3,
    "tags": [
      "market",
      "food",
      "chapter-2"
    ],
    "generate": true
  }
}