Input
startbegins a new run.intentis a short summary of why the user triggered the flow.stateUpdatescan pre-fill any known fields so the engine auto-skips those questions.continueresumes the current run with the user’s latest answers instateUpdates.
Response statuses
Every tool call drives the engine until it hits one of four outcomes:
Between pause points, the engine auto-advances through action nodes (nodes that return a plain state update). No round-trip to the model. A single tool call can run several action nodes before hitting the next pause.
State persistence
State persists between calls in the flow store, keyed by the session id extracted from_meta. Default behavior is described in the Platform overview:
- Without an explicit
storeand withoutWANIWANI_API_KEY,.compile()throws at compile time. - With an explicit
store: KvStore, state lives wherever your adapter writes. - With
WANIWANI_API_KEYand no explicitstore, the SDK selectsWaniwaniKvStoreand state lives onapp.waniwani.ai.