Class: RailsAiBridge::Serializers::Formatters::Providers::GeminiFooterFormatter

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_ai_bridge/serializers/formatters/providers/gemini_footer_formatter.rb

Overview

Renders the Gemini footer with behavioral rules and regeneration note.

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RailsAiBridge::Serializers::Formatters::Base

Instance Method Details

#callString

Renders the footer for the GEMINI.md file.

Returns:

  • (String)

    The rendered footer.



13
14
15
16
17
18
# File 'lib/rails_ai_bridge/serializers/formatters/providers/gemini_footer_formatter.rb', line 13

def call
  SharedAssistantGuidance.compact_engineering_rules_footer_lines(
    context,
    rules_heading: '## Behavioral Rules'
  ).join("\n")
end