class

Enkaidu::Runtime::QueuedQueries

Inherits Reference < Object

Represents queued queries, and a string representation of the source of queries.

  • For a macro, the source is the macro call
  • For a user prompt, the source is USER_PROMPT.

Constants

USER_PROMPT = "<user>"

Constructors

new(prompt : String)

Create one with user prompt

Source
new(prepared_macro : Enkaidu::PreparedMacro)

Create one with a macro

Source

Instance methods

finish!

Force completion of macro, moving next query pointer to end

Source
finished?

Return true if no more queries remain

Source
next_query?

Return next query if any, or nil if at end of macro

Source
queries
Source
source
Source