Class: RailsAiBridge::Serializers::Formatters::Providers::GeminiHeaderFormatter

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

Overview

Renders the Gemini-specific document header.

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 header for the GEMINI.md file.

Returns:

  • (String)

    The rendered header.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/rails_ai_bridge/serializers/formatters/providers/gemini_header_formatter.rb', line 11

def call
  ProviderDocumentHeader.call(
    context: context,
    document_title: 'AI Context',
    layout: :ai_context,
    intro: <<~INTRO.chomp
      This file provides a high-level overview of this Rails application's
      structure, patterns, and conventions. As an AI assistant, use this context
      to quickly understand the project and generate idiomatic code that
      adheres to its design decisions. For deeper dives, use the live
      MCP tools referenced throughout this document.
    INTRO
  )
end