1 Write a flow
Declare a Tool and compose it in a checked program.
@tool flow ask() -> Result<Int, Text> pub flow main() -> Result<Int, ToolProblem<Text>> !tool = ask()
Write deterministic programs. Make typed Tool calls.
Inspect and replay what happened.
Declare what each Tool accepts and returns. Check the program before running it.
Inspect the observations and choices that a run could not compute for itself.
Reproduce a recorded run without calling its external implementations.
A small example, from a typed call to recorded replay.
Declare a Tool and compose it in a checked program.
@tool flow ask() -> Result<Int, Text> pub flow main() -> Result<Int, ToolProblem<Text>> !tool = ask()
Let the browser fixture answer the declared Tool.
Start
Call ./main.ask
Reply {"Ok":42}
End
{"Ok":42}Read the recorded reply. No implementation is invoked.
Replay recorded run verdict: matched Tool calls during replay: 0