Are you an LLM? You can read better optimized documentation at /events.md for this page in Markdown format
Liminal Events beta
Event Format
ts
import type { LEvent } from "liminal"
declare const lEvent: LEvent
L.events
ts
import { Console, Effect, flow } from "effect"
import L, { LPretty } from "liminal"
import { ModelLive } from "./ModelLive"
Effect.gen(function*() {
// For each event...
yield* L.listen(
// Prettify & log.
flow(LPretty.event, Console.log),
)
yield* L.user`Welcome to the cotton club.`
yield* L.assistant
}).pipe(
L.thread,
Effect.scoped,
Effect.provide(ModelLive),
Effect.runFork,
)