Openturn’s inspector turn the action log into an interactive timeline: every frame, every state diff, every transition branch the engine considered, and the graph of states with the current node highlighted.Documentation Index
Fetch the complete documentation index at: https://openturn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Preferred: useInspector + <InspectorShell>
Inside any <OpenturnProvider>, call useInspector() on your bindings. One hook covers both local and multiplayer modes; it picks the right timeline source (local replay log or hosted batch history) from useMatch().
useReplayInspector:
Drop-in components
@openturn/inspector-ui exports a single createInspector(bindings) that returns { Inspector, ReplayInspector, HostedInspector }. Each component manages its own inspector state internally and renders <InspectorShell> for you. Prefer the hook-based pattern above for custom layouts.
What you see
Each inspector exposes the same panels:- Timeline — a horizontal list of frames. Click a frame to jump to it.
- Snapshot — the full
G+position+derivedat the selected frame. - Diff — what changed between the previous and current frame (computed with
diffReplayValues). - Transition — the event that fired, the chosen branch label, and all the branches the engine evaluated.
- Control — the state’s
controlsummary and pending targets. - Graph — the state machine graph with the current node and incoming/outgoing edges highlighted.
Inspecting a specific branch
Click a transition entry to see:- The event name and payload.
- Every branch evaluation: which resolver ran, whether it returned a result, and (if not) why (null return,
rejectTransition, no match). - The chosen branch’s label.
Programmatic access
If you want the raw data without a UI, use the underlying builders:hostedBatchEntriesFromProtocol and pass the result as the entries field of a { kind: "hosted", ... } source.
Related
- How-to: capture replays for producing the envelope an inspector loads.
- Reference: inspector and reference: inspector-ui.