class ChatGPT::Magic

Defined in:

chatgpt/magic.cr
chatgpt/magic/base.cr
chatgpt/magic/cd.cr
chatgpt/magic/clear.cr
chatgpt/magic/config.cr
chatgpt/magic/copy.cr
chatgpt/magic/debug.cr
chatgpt/magic/edit.cr
chatgpt/magic/help.cr
chatgpt/magic/history.cr
chatgpt/magic/html.cr
chatgpt/magic/list.cr
chatgpt/magic/load.cr
chatgpt/magic/model.cr
chatgpt/magic/pop.cr
chatgpt/magic/response.cr
chatgpt/magic/resume.cr
chatgpt/magic/save.cr
chatgpt/magic/shift.cr
chatgpt/magic/system.cr
chatgpt/magic/tokens.cr
chatgpt/magic/webapp.cr
chatgpt/magic/write.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data = nil, key : String = "%") #

[View source]

Instance Method Detail

def commands : Array(ChatGPT::Magic::Base) #

[View source]
def data : PostData #

[View source]
def data=(data : PostData) #

[View source]
def key : String #

[View source]
def response_data : ResponseData #

[View source]
def result : Bool #

[View source]
def run(command : String, data : ChatGPT::PostData, response_data : ChatGPT::ResponseData) : Bool #

[View source]
def total_tokens : Int32 #

[View source]
def try_run(msg, data, response_data, total_tokens : Int32) #

[View source]