class
Llama::Chat
- Llama::Chat
- Reference
- Object
Overview
Transactional conversation history over a reusable Session.
Included Modules
Defined in:
llama/chat.crConstructors
Instance Method Summary
- #ask(content : String, options : GenerationOptions = GenerationOptions.new, commit_partial : Bool = false, &block : GenerationChunk -> ) : Generation
- #ask(content : String, options : GenerationOptions = GenerationOptions.new, commit_partial : Bool = false) : Generation
- #clear : Nil
- #close : Nil
- #closed? : Bool
- #finalize
- #free : Nil
- #history : Array(Message)
- #to_unsafe
Constructor Detail
def self.new(model : Model, system : String | Nil = nil, template : String | Nil = nil, context_options : ContextOptions = ContextOptions.new)
#
Instance Method Detail
def ask(content : String, options : GenerationOptions = GenerationOptions.new, commit_partial : Bool = false, &block : GenerationChunk -> ) : Generation
#
def ask(content : String, options : GenerationOptions = GenerationOptions.new, commit_partial : Bool = false) : Generation
#