Skip to content

LLM Resources

Events โ€‹

The kernel turns readings into meaning, so your code reacts to conditions rather than polling numbers.

js
plant.on( 'plant:thirsty', async e => {
  await openValve()
  await plant.water()
} )

sensor:reading ยท sensor:error ยท plant:thirsty ยท plant:drowning ยท plant:too-hot ยท plant:too-cold ยท plant:too-dark ยท plant:too-bright ยท plant:stressed ยท plant:happy ยท plant:damaged ยท plant:spoke ยท vision:analysis ยท electro:analysis ยท spectral:sweep ยท alert ยท plugin:loaded ยท ai:request ยท ai:response ยท error

Listeners may be async โ€” emit awaits them. One listener throwing never stops the others or the monitoring loop, and an action taken inside a listener cannot feed back into the event that triggered it.