class RubyLLM::Generators::AgentGenerator
Generator for RubyLLM agent classes and prompt files.
Public Instance Methods
Source
# File lib/generators/ruby_llm/agent/agent_generator.rb, line 15 def create_agent_file template 'agent.rb.tt', File.join('app/agents', class_path, "#{agent_file_name}.rb") end
Source
# File lib/generators/ruby_llm/agent/agent_generator.rb, line 19 def create_prompt_file empty_directory File.join('app/prompts', class_path, agent_file_name) template 'instructions.txt.erb.tt', File.join('app/prompts', class_path, agent_file_name, 'instructions.txt.erb') end