Skip to content
Loamis build console Read only

reasoning

READ ONLY: generated from the specification

2 states, 5 events, 12 rules. Initial state: streaming.

Transition graph

streamingfinished

Double outline: the initial state. Dashed line and ◆: the rule has a guard.

Transitions, as a list

  1. streaming, on chunk, to streaming
  2. finished, on chunk, to streaming, guarded: ctx.userToggled == false
  3. finished, on chunk, to streaming, guarded: ctx.userToggled == true
  4. streaming, on finish, to finished, guarded: ctx.userToggled == false
  5. streaming, on finish, to finished, guarded: ctx.userToggled == true
  6. streaming, on elapsed, to streaming, guarded: event.seconds >= ctx.elapsedSeconds
  7. streaming, on toggle, to streaming, guarded: ctx.open == true
  8. streaming, on toggle, to streaming, guarded: ctx.open == false
  9. finished, on toggle, to finished, guarded: ctx.open == true
  10. finished, on toggle, to finished, guarded: ctx.open == false
  11. streaming, on controlled, to streaming
  12. finished, on controlled, to finished

Live runner

Current state: streaming

a whole number; the machine samples 0, 3, 12

a whole number; the machine samples 0, 3, 12

Context

open
true
elapsedSeconds
0
userToggled
false

View flags now

ariaExpanded
true
showContent
true
showSpinner
true
label
"thinking"
seconds
0
toggleEnabled
true
defaultFocus
"trigger"

Effects emitted

None.

Trace

No event sent yet.

States

streaming

initial

View flags

ariaExpanded
true
showContent
true
showSpinner
true
label
"thinking"
seconds
0
toggleEnabled
true
defaultFocus
"trigger"

Rules that leave it

  1. chunk to streaming
  2. finish to finished when ctx.userToggled == false ; sets elapsedSeconds := event.elapsedSeconds, open := false
  3. finish to finished when ctx.userToggled == true ; sets elapsedSeconds := event.elapsedSeconds
  4. elapsed to streaming when event.seconds >= ctx.elapsedSeconds ; sets elapsedSeconds := event.seconds
  5. toggle to streaming when ctx.open == true ; sets open := false, userToggled := true
  6. toggle to streaming when ctx.open == false ; sets open := true, userToggled := true
  7. controlled to streaming ; sets open := event.open

finished

View flags

ariaExpanded
true
showContent
true
showSpinner
false
label
"thoughtFor"
seconds
0
toggleEnabled
true
defaultFocus
"trigger"

Rules that leave it

  1. chunk to streaming when ctx.userToggled == false ; sets elapsedSeconds := 0, open := true
  2. chunk to streaming when ctx.userToggled == true ; sets elapsedSeconds := 0
  3. toggle to finished when ctx.open == true ; sets open := false, userToggled := true
  4. toggle to finished when ctx.open == false ; sets open := true, userToggled := true
  5. controlled to finished ; sets open := event.open
All machines