Overview
Artanis provides four main methods for recording data in traces:input()- Data going into an operationoutput()- Final result of an operationstate()- Context needed for replayevent()- Discrete decisions or milestones
trace.input()
Record inputs at any stage. You can call this multiple times to progressively add inputs.Any key-value pairs to record as inputs. Values are JSON-serialized.
trace.output()
Record the final output. Typically called once at the end.The output value to record. Can be any JSON-serializable value.
trace.state()
Capture state that existed at inference time. Essential for replay functionality.Why capture state? When debugging or replaying a trace, you need to know
not just what inputs were used, but what context existed at the time.
Name of the state variable
The state value to record. Can be any JSON-serializable value.