class Llama::StopDetector

Overview

Buffers possible stop prefixes and emits only text known to be safe.

Defined in:

llama/stop_detector.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(stops : Array(String), include_stop : Bool = false) #

[View source]

Instance Method Detail

def finish : String #

[View source]
def matched : String | Nil #

[View source]
def push(text : String) : String #

[View source]