Guppi::Agent
Inherits Reference < Object
Constructors
new(prompts : Crinja, client : OpenAIClient, model : String = "gpt-3.5-turbo")
SourceInstance methods
add_agent_message(content : String)
Sourceadd_message(role : String, content : String)
Sourceadd_system_message(content : String)
Sourceadd_user_message(content : String)
Sourcechat(options : Hash | Nil = nil, &block : String -> Nil)
Sourceclient
Sourceend_conversation
Sourcemessages
Sourcemodel
Sourceprompts
Sourcerender(template_name, context)
Source