class

Enkaidu::Recorder

Inherits Reference < Object

Recorder class handles recording in-app events and debug events for troubleshooting LLM comms

Constructors

new(rec_io : IO | Nil = nil)

Initializes a new Recorder instance with an optional IO object for recording.

Source

Instance methods

<<(s)

Appends a string to the rec_io. Flushes if threshold is reached.

Source
close

Closes the rec_io.

Source
flush

Flushes the rec_io.

Source
if_recording?

Yield with IO to write to if recording

Source