Class: Senren::Rails::LlmsWriter
- Inherits:
-
Object
- Object
- Senren::Rails::LlmsWriter
- Defined in:
- lib/senren/rails/llms_writer.rb
Overview
Backward-compatible wrapper around AgentRulesWriter.
Legacy llms generation now maps to agent rules synchronization and no longer writes public llms files.
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(registry: Registry.load!, paths: HostPaths.new) ⇒ LlmsWriter
constructor
A new instance of LlmsWriter.
Constructor Details
#initialize(registry: Registry.load!, paths: HostPaths.new) ⇒ LlmsWriter
Returns a new instance of LlmsWriter.
12 13 14 15 |
# File 'lib/senren/rails/llms_writer.rb', line 12 def initialize(registry: Registry.load!, paths: HostPaths.new) @registry = registry @paths = paths end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
10 11 12 |
# File 'lib/senren/rails/llms_writer.rb', line 10 def paths @paths end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
10 11 12 |
# File 'lib/senren/rails/llms_writer.rb', line 10 def registry @registry end |
Instance Method Details
#generate! ⇒ Object
17 18 19 |
# File 'lib/senren/rails/llms_writer.rb', line 17 def generate! AgentRulesWriter.new(registry: registry, paths: paths).sync! end |