Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
guppi
main
Guppi
Action
Agent
OpenAIClient
App
CLI
CommandRunner
FileChanges
FileCreatorAgent
FileModifierAgent
FileReaderAgent
Files
FileTree
PlanningAgent
Step
Steps
Built with Crystal 1.9.2
2023-10-07 17:32:40 UTC
class
Guppi::PlanningAgent
Guppi::PlanningAgent
Guppi::Agent
Reference
Object
Defined in:
planning_agent.cr
Constructors
.new
(prompts : Crinja, client : OpenAIClient, model : String)
Instance Method Summary
#plan
(project_file : String, relevant_files : String)
#valid_json?
(json : String) : Bool
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
]