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 Method Summary collapse

Instance Method Details

#call ⇒ String

Renders the footer for the GEMINI.md file.

Returns:

  • (String) —

    The rendered footer.



13
14
15
16
17
18
19
# 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',
    include_anti_hallucination: false
  ).join("\n")
end