class

Guppi::Agent

Inherits Reference < Object

Constructors

new(prompts : Crinja, client : OpenAIClient, model : String = "gpt-3.5-turbo")
Source

Instance methods

add_agent_message(content : String)
Source
add_message(role : String, content : String)
Source
add_system_message(content : String)
Source
add_user_message(content : String)
Source
chat(options : Hash | Nil = nil, &block : String -> Nil)
Source
client
Source
end_conversation
Source
messages
Source
model
Source
prompts
Source
render(template_name, context)
Source

Nested types