class Guppi::PlanningAgent

Defined in:

planning_agent.cr

Constructors

Instance Method Summary

Instance methods inherited from class Guppi::Agent

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

Constructor methods inherited from class Guppi::Agent

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

Constructor Detail

def self.new(prompts : Crinja, client : OpenAIClient, model : String) #

[View source]

Instance Method Detail

def plan(project_file : String, relevant_files : String) #

[View source]
def valid_json?(json : String) : Bool #

[View source]